(Step 0A/700) OF ZPU2PROGRAM4XI5TEST - SENSING IT WITH YOURZPUXI! 08:41:48 02/18/15 FLE Standard Time (Step 0A/33) OF TEST_RESOURCESHARER4XI - SET T2XI TO: ================================= (Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) 08:41:48 02/18/15 FLE Standard Time ================================= (Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) 08:41:48 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:41:48 02/18/15 FLE Standard Time (Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ZPU2Program4Xi (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: add2programwithbinary4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: add2programwithsource4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: build2program4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: compile2program4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: create2programwithbinary4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: create2programwithsource4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: create2sampler4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: delete2programwithbinary4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: delete2programwithsource4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: fetch2programbinary4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: fetch2programsource4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: get2programbuildinfo4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: get2programinfo4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: link2program4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: release2program4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: retain2program4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: set2programcallback4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: set2programwithbinary4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: set2programwithsource4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: trace2program4zpu (Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: unload2compiler4zpu (Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: 08:41:48 02/18/15 FLE Standard Time (Step 1A/700) OF ZPU2PROGRAM4XI5TEST - STARTED 08:41:48 02/18/15 FLE Standard Time JATKA FOCUS 01 (Step 2A1/700) OF ZPU2PROGRAM4XI5TEST - TRYING TO CREATE PROGRAM SOURCE FOR ZPU 08:41:48 02/18/15 FLE Standard Time ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 1A/70) started; create2programwithsource4zpu-started: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 1B/70) passed; task4program2zpu-to-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 1C/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 1D/70) initialized; function2callback4zpu-created-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 1E/70) initialized; args2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 1F/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {'FUNCTION2CALLBACK': , 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 2B/70) got; platform2xi-got-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 3A/70) trying; context2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 3B/70) got; context2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 4A/70) trying; device2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 4B/70) got; device2zpu-got-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 6A/70) trying; queue2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 6B/70) got; queue2zpu-got-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 7A/70) trying; pipe2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 7B/70) got; pipe2zpu-got-by-create2programwithsource4zpu: (, ); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 8A/70) trying; commandqueueinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 8B/70) got; commandqueueinfo2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': , 'FUNCTION2CALLBACK': , 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 9A/70) trying; bufferinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 9B/70) got; bufferinfo2zpu-got-by-create2programwithsource4zpu: {'POINTER2BUFFER': , 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': }; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 10A/70) trying; eventinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 10B/70) got; eventinfo2zpu-got-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (, ), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': , 'FUNCTION2CALLBACK': , 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': , 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': }; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 11A/70) trying; count2zpu-trying-by-create2programwithsource4zpu: 0; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 11B/70) set; count2zpu-set-by-create2programwithsource4zpu to: 2; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 12B/70) set; dir2zpu-set-by-create2programwithsource4zpu to: e://scope4xi//041721//zap//lib//z//; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//bin; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//index', '.html'); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: html; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//z2scope4xi', '.txt'); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: txt; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: <_io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'>; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 3; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // zpu2dummy4xi5test.cpp ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID 0 ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID2 1 ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Program source ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const char* KernelSource = ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " __kernel void simple( __global float* A) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = A[tid] + 5; \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple2(__global float *A, int nLoops) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " for (int i = 0; i < nLoops; i++) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " } \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " if (tid < entries) \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " B[tid] = 2 * A[tid]; \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n"; ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // native kernel data structure ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData { ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *inData; ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *outData; ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int size; ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }; ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*size; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (i > (NKData->size -5)) ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,NKData->inData[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: NKData->outData[i] = 2*NKData->inData[i]; ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /**/ ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /**/ ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /**/ ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /**/ ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /**/ ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /**/ ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: <_io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'>; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: <_io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'>; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 1; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Public API ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Standard Imports ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Scope4Xi imports ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Multiprocessing Imports ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DragonXi imports ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Global constants ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------ ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def set2trace4xi(): ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING LETTER : ", key2pickledb) ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("PICKLED object: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Mark those with NACK4XI to be traced ! ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if dictionary2pickle[key2dictionary] == 'NACK4XI': ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = True ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pass ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def deny2trace4xi(): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STEP: PICKLED object: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK4XI = tested .i.e. NOT to be traced! ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'ACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle[key2dictionary] = 'ACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # _, a ... z ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def tailor2trace4xi(): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Settings to tailor trace ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PROCESS KB4Tailoring ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2tailor = sorted(KB4Tailoring.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2tailor in keys2tailor: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'NACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = key2tailor ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EOF KEYS ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def print2trace4xi(t2xi): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # SENSE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2sense = { ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' \n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' Classes, methods and messages with context.\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' \n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' Sensing Sampler of ZPU.\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' \n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' Sampler of ZPU sensed.\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_sense4xi(t2xi, context2sense) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # REASON ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2reason = { ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' \n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' Operations\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'operation_comment4xi': ' Operations for Sampler of ZPU.\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' \n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' Operations with context.\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' \n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' reason\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_reason4xi(t2xi, context2reason) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2ace = { ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' \n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' Objects and values for Sampler of ZPU.\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' \n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' Objects and values of Sampler of ZPU.\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' \n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' 000000\n', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_ace4xi(t2xi, context2ace) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # end of print2trace4xi ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def zpu2sampler4xi5test(): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # INITIALIZE TRACE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi = Print4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set2trace4xi() # trace all classes and functions in the system ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: deny2trace4xi() # deny trace for all classes and functions in the system ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: tailor2trace4xi() # tailor trace for this test ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # START TESTING ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = create2sampler4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (, ) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4samplerinfo2zpu.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4samplerinfo2zpu[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (, ) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (1) GET PLATFORM IDs TO SET CONTEXT ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = get2platformids4xi() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (2) INITIALIZE DEVICE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: device2zpu = init2zpu4xi() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (3) CREATE CONTEXT ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2zpu = create2context4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE PROPERTIES - NONE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PROPERTIES'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) DEFINE ERROR CODE - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) SET QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET PIPE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (, ) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET REST ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET SAMPLER - FINALLY! ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = set2sampler4zpu(task4set2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0 ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (, ) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = release2sampler4zpu(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = retain2sampler4zpu(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (14) SAMPLER CALLBACK ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4setcallback2sampler = set2samplercallback4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: TRACE FUNCTION TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = trace2sampler4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CREATE WITH OBJECT ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: samplerobject2zpu = ZPU2Sampler4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT') ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - GET METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4get2samplerinfo.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4get2samplerinfo[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (, ) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE ERROR CODE - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) PIPE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (, ) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET COMMAND QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET ADDRESSINGMODE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) SET FILTERINGMODE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_FILTER_LINEAR ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_LINEAR ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (, ) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xi2zpu = ZPU2Sampler4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = xi2zpu.create2sampler() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (, ) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: callback2zpu = xi2zpu.set2samplercallback() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - TRACE SAMPLERS ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = xi2zpu.trace2sampler() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = xi2zpu.release2sampler(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SENSE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.sense()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': } ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - REASON SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.reason()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - ACE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.ace()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DONE - ALL TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: finally: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Print Trace ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print2trace4xi(t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def main(): ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: zpu2sampler4xi5test() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # __main__ ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if __name__ == '__main__': ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: main() ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Recorded History ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # to-be-done ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Legal Notice ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: <_io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'>; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\version4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\z2skeleton4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2buffer4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2commandqueue4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2context4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2device4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2event4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2kernel4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2program4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2sampler4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu3image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { fetch2programsource4zpu : fetch2programsource4zpu ; (Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 14B/70) set; size2source4zpu-set-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 15B/70) set; language2zpu-set-by-create2programwithsource4zpu to: Python; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 17B/70) set; count2reference2zpu-set-by-create2programwithbinary4zpu to: 1; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 19A/70) using; keys2task-using-by-create2programwithsource4zpu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 20A/70) initialized; zpu2program4xi-initialized-by-create2programwithsource4zpu to: {}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 21A0/70) try; data2callback-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 22B0/70) try; function2callback-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 22C0/70) try; platform-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 22C1/70) initialized; platform-created-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 23A/70) try; context2zpu-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 23B/70) initialized; context-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 24A/70) try; device-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 24B/70) initialized; device-created-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 25A/70) try; code2error-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 25B/70) initialized; code2error-created-by-create2programwithsource4zpu: 0; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 26A/70) try; queue-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 26B/70) initialized; queue-created-by-create2programwithsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 27A/70) try; pipe-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 27B/70) initialized; pipe-created-by-create2programwithsource4zpu: (, ); time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 28A/70) try; commandqueue-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': , 'FUNCTION2CALLBACK': , 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 29A/70) try; bufferinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4zpu: {'POINTER2BUFFER': , 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': }; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 30A/70) try; eventinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (, ), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': , 'FUNCTION2CALLBACK': , 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': , 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': }; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 31A1/70) try; task4program2zpu-try-by-create2programwithsource4zpu: {'CODE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}, 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': , 'FUNCTION2CALLBACK': , 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'BUFFER': {'POINTER2BUFFER': , 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': }, 'SIZE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}, 'DIRECTORY': 'e://scope4xi//041721//zap//lib//z//', 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}, 'PIPE': (, ), 'COUNT': 2, 'QUEUE': , 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'EVENT': {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (, ), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (, ), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': , 'FUNCTION2CALLBACK': , 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': , 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': }, 'LANGUAGE': 'Python', 'FUNCTION2CALLBACK': , 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': }, 'COUNT2REFERENCE': 1, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 31A2/70) try; count-try-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 31B/70) initialized; count-created-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 32A/70) try; directory-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 32B/70) initialized; directory-created-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 33A/70) try; codetask-try-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 33B/70) created; code-created-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.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', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 495: ' \'ontology_about4xi\': \' \\n\',\n', 496: ' \'ontology_comment4xi\': \' Classes, methods and messages with context.\\n\',\n', 497: ' \'class0_id4xi\': \' \\n\',\n', 498: ' \'class0_comment4xi\': \' Sensing Sampler of ZPU.\\n\',\n', 499: ' \'object_property_rdf4xi\': \' \\n\',\n', 500: ' \'object_property_comment4xi\': \' Sampler of ZPU sensed.\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 513: ' \'ontology_about4xi\': \' \\n\',\n', 514: ' \'ontology_comment4xi\': \' Operations\\n\',\n', 515: ' \'operation_comment4xi\': \' Operations for Sampler of ZPU.\\n\',\n', 516: ' \'class0_id4xi\': \' \\n\',\n', 517: ' \'class0_comment4xi\': \' Operations with context.\\n\',\n', 518: ' \'object_property_rdf4xi\': \' \\n\',\n', 519: ' \'object_property_comment4xi\': \' reason\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\\n\',\n', 532: ' \'ontology_about4xi\': \' \\n\',\n', 533: ' \'ontology_comment4xi\': \' Objects and values for Sampler of ZPU.\\n\',\n', 534: ' \'class0_id4xi\': \' \\n\',\n', 535: ' \'class0_comment4xi\': \' Objects and values of Sampler of ZPU.\\n\',\n', 536: ' \'object_property_rdf4xi\': \' \\n\',\n', 537: ' \'object_property_comment4xi\': \' 000000\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '# \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : \n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (, )\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : \n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : \n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (, )\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : \n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # \n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (, ) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : \n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (, )\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : \n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # \n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # \n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : \n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (, )\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : \n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # \n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (, )\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : \n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (, )\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : \n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : \n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (, )\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : \n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': }\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': , 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': } \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '# \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '# \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#\n', 1420: '\n', 1421: '#\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#\n', 1430: '\n', 1431: '#\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#\n', 1447: '\n', 1448: '# \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 34A/70) try; size-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 34B/70) initialized; size-initialized-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 35A/70) try; language-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 35B/70) initialized; language-created-by-create2programwithsource4zpu: Python; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 36A/70) try; count2reference-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 36B/70) initialized; count2reference-created-by-create2programwithsource4zpu: 1; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DIRECTORY4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COMMANDQUEUE; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: NACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: BUFFER; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: LANGUAGE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DATA2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PIPE; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: ACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: QUEUE; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PLATFORM; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: EVENT; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: FUNCTION2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CONTEXT; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: SIZE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT2REFERENCE; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE2ERROR; time: 08:41:49 02/18/15 FLE Standard Time} ================================= ================================= { create2programwithsource4zpu : create2programwithsource4zpu ; (Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DEVICE; time: 08:41:49 02/18/15 FLE Standard Time} ================================= (Step 2A2/700) OF ZPU2PROGRAM4XI5TEST - CREATED PROGRAM SOURCE FOR ZPU dict_keys(['DIRECTORY4SOURCE', 'COMMANDQUEUE', 'CODE4SOURCE', 'NACK2RETURN', 'BUFFER', 'LANGUAGE4SOURCE', 'DATA2CALLBACK', 'PIPE', 'ACK2RETURN', 'COUNT4SOURCE', 'QUEUE', 'PLATFORM', 'EVENT', 'FUNCTION2CALLBACK', 'CONTEXT', 'SIZE4SOURCE', 'COUNT2REFERENCE', 'CODE2ERROR', 'DEVICE']) COUNT4SOURCE: 2 DIRECTORY4SOURCE: e://scope4xi//041721//zap//lib//z// LANGUAGE4SOURCE: Python SIZE4SOURCE: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453} SOURCE: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp // ----------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------------------------------- #include #include SOURCE: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.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 ZPU2PROGRAM4XI5TEST - DONE! 08:41:49 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: {'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\n', 'class0_id4xi': ' \n', 'object_property_comment4xi': ' Program of ZPU sensed.\n', 'ontology_about4xi': ' \n', 'debug4xi': True, 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-zpu2program4xi5test.xml', 'class0_comment4xi': ' Sensing Program of ZPU.\n', 'ontology_comment4xi': ' Classes, methods and messages with context.\n', 'object_property_rdf4xi': ' \n', 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n'} (STEP 2A/33) OF XML_TRACE_SENSE - LEN2KB: 2369 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000001 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000002 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000003 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000004 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000005 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000006 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000007 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000008 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000009 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000010 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000011 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000012 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000013 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000014 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000015 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000016 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000017 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000018 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000019 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000020 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000021 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000022 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000023 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000024 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000025 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000026 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000027 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000028 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000029 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000030 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000037 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000038 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000039 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000040 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000041 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000052 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000053 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000054 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000055 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000056 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000063 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000064 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000065 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000066 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000067 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000078 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000079 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000080 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000081 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000082 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000093 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000094 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000095 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000096 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000097 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000108 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000109 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000110 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000111 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000112 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000123 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000124 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000125 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000126 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000127 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000138 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000139 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000140 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000141 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000142 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000153 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000154 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000155 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000156 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000157 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000168 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000169 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000170 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000171 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000172 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000183 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000184 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000185 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000186 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000187 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000539 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000540 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000541 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000542 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000543 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000554 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000555 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000556 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000557 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000558 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000569 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000570 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000571 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000572 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000573 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000584 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000585 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000586 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000587 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000588 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000599 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000600 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000601 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000602 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000603 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000614 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000615 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000616 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000617 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000618 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000629 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000630 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000631 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000632 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000633 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000644 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000645 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000646 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000647 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000648 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000659 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000660 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000661 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000662 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000663 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000674 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000675 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000676 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000677 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000000678 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002146 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002147 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002148 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002149 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002150 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002161 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002162 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002163 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002164 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002165 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002176 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002177 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002178 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002179 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002180 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002181 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002188 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002189 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002190 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002191 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002192 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002199 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002200 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002201 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002202 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002203 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002210 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002211 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002212 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002213 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002214 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002221 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002222 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002223 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002224 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002225 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002232 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002233 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002234 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002235 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002236 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002243 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002244 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002245 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002246 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002247 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002254 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002255 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002256 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002257 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002258 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002265 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002266 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002267 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002268 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002269 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002276 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002277 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002278 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002279 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002280 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002287 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002288 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002289 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002290 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002291 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002298 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002299 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002300 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002301 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002302 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002309 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002310 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002311 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002312 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002313 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002314 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002315 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002316 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002317 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002318 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002319 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002320 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002321 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002322 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002323 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002324 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002325 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002326 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002327 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002328 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002329 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002330 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002331 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002332 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002333 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002334 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002335 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002336 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002337 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002338 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002339 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002340 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002341 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002342 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002343 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002344 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002345 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002346 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002347 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002348 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002349 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002350 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002351 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002352 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002353 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002354 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002355 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002356 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002357 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002358 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002359 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002360 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002361 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002362 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002363 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002364 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002365 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002366 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002367 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002368 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: create2programwithsource4zpucreate2programwithsource4zpu#000002369 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000031 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000032 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000033 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000034 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000035 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000036 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000042 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000043 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000044 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000045 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000046 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000047 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000048 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000049 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000050 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000051 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000057 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000058 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000059 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000060 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000061 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000062 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000068 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000069 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000070 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000071 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000072 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000073 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000074 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000075 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000076 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000077 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000083 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000084 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000085 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000086 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000087 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000088 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000089 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000090 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000091 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000092 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000098 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000099 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000100 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000101 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000102 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000103 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000104 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000105 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000106 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000107 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000113 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000114 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000115 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000116 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000117 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000118 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000119 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000120 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000121 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000122 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000128 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000129 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000130 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000131 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000132 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000133 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000134 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000135 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000136 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000137 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000143 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000144 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000145 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000146 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000147 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000148 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000149 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000150 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000151 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000152 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000158 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000159 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000160 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000161 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000162 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000163 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000164 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000165 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000166 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000167 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000173 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000174 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000175 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000176 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000177 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000178 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000179 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000180 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000181 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000182 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000188 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000189 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000190 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000191 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000192 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000193 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000194 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000195 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000196 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000197 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000198 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000199 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000200 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000201 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000202 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000203 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000204 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000205 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000206 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000207 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000208 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000209 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000210 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000211 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000212 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000213 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000214 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000215 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000216 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000217 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000218 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000219 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000220 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000221 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000222 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000223 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000224 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000225 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000226 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000227 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000228 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000229 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000230 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000231 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000232 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000233 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000234 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000235 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000236 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000237 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000238 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000239 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000240 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000241 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000242 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000243 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000244 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000245 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000246 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000247 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000248 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000249 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000250 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000251 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000252 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000253 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000254 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000255 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000256 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000257 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000258 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000259 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000260 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000261 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000262 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000263 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000264 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000265 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000266 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000267 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000268 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000269 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000270 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000271 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000272 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000273 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000274 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000275 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000276 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000277 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000278 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000279 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000280 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000281 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000282 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000283 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000284 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000285 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000286 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000287 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000288 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000289 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000290 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000291 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000292 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000293 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000294 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000295 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000296 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000297 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000298 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000299 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000300 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000301 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000302 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000303 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000304 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000305 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000306 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000307 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000308 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000309 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000310 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000311 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000312 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000313 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000314 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000315 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000316 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000317 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000318 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000319 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000320 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000321 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000322 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000323 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000324 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000325 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000326 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000327 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000328 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000329 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000330 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000331 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000332 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000333 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000334 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000335 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000336 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000337 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000338 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000339 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000340 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000341 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000342 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000343 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000344 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000345 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000346 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000347 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000348 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000349 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000350 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000351 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000352 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000353 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000354 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000355 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000356 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000357 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000358 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000359 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000360 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000361 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000362 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000363 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000364 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000365 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000366 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000367 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000368 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000369 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000370 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000371 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000372 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000373 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000374 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000375 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000376 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000377 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000378 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000379 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000380 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000381 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000382 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000383 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000384 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000385 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000386 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000387 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000388 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000389 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000390 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000391 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000392 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000393 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000394 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000395 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000396 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000397 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000398 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000399 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000400 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000401 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000402 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000403 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000404 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000405 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000406 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000407 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000408 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000409 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000410 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000411 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000412 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000413 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000414 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000415 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000416 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000417 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000418 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000419 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000420 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000421 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000422 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000423 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000424 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000425 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000426 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000427 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000428 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000429 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000430 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000431 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000432 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000433 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000434 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000435 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000436 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000437 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000438 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000439 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000440 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000441 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000442 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000443 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000444 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000445 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000446 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000447 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000448 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000449 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000450 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000451 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000452 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000453 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000454 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000455 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000456 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000457 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000458 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000459 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000460 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000461 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000462 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000463 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000464 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000465 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000466 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000467 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000468 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000469 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000470 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000471 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000472 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000473 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000474 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000475 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000476 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000477 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000478 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000479 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000480 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000481 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000482 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000483 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000484 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000485 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000486 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000487 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000488 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000489 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000490 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000491 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000492 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000493 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000494 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000495 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000496 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000497 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000498 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000499 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000500 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000501 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000502 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000503 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000504 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000505 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000506 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000507 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000508 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000509 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000510 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000511 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000512 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000513 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000514 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000515 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000516 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000517 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000518 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000519 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000520 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000521 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000522 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000523 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000524 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000525 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000526 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000527 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000528 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000529 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000530 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000531 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000532 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000533 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000534 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000535 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000536 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000537 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000538 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000544 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000545 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000546 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000547 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000548 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000549 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000550 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000551 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000552 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000553 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000559 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000560 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000561 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000562 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000563 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000564 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000565 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000566 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000567 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000568 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000574 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000575 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000576 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000577 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000578 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000579 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000580 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000581 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000582 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000583 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000589 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000590 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000591 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000592 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000593 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000594 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000595 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000596 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000597 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000598 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000604 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000605 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000606 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000607 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000608 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000609 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000610 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000611 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000612 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000613 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000619 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000620 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000621 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000622 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000623 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000624 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000625 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000626 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000627 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000628 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000634 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000635 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000636 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000637 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000638 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000639 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000640 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000641 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000642 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000643 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000649 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000650 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000651 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000652 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000653 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000654 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000655 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000656 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000657 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000658 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000664 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000665 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000666 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000667 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000668 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000669 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000670 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000671 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000672 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000673 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000679 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000680 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000681 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000682 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000683 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000684 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000685 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000686 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000687 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000688 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000689 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000690 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000691 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000692 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000693 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000694 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000695 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000696 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000697 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000698 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000699 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000700 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000701 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000702 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000703 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000704 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000705 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000706 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000707 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000708 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000709 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000710 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000711 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000712 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000713 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000714 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000715 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000716 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000717 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000718 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000719 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000720 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000721 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000722 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000723 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000724 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000725 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000726 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000727 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000728 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000729 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000730 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000731 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000732 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000733 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000734 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000735 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000736 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000737 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000738 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000739 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000740 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000741 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000742 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000743 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000744 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000745 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000746 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000747 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000748 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000749 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000750 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000751 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000752 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000753 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000754 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000755 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000756 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000757 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000758 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000759 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000760 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000761 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000762 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000763 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000764 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000765 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000766 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000767 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000768 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000769 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000770 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000771 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000772 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000773 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000774 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000775 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000776 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000777 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000778 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000779 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000780 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000781 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000782 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000783 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000784 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000785 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000786 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000787 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000788 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000789 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000790 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000791 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000792 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000793 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000794 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000795 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000796 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000797 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000798 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000799 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000800 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000801 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000802 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000803 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000804 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000805 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000806 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000807 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000808 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000809 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000810 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000811 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000812 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000813 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000814 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000815 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000816 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000817 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000818 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000819 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000820 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000821 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000822 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000823 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000824 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000825 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000826 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000827 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000828 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000829 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000830 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000831 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000832 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000833 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000834 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000835 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000836 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000837 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000838 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000839 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000840 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000841 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000842 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000843 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000844 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000845 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000846 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000847 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000848 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000849 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000850 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000851 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000852 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000853 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000854 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000855 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000856 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000857 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000858 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000859 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000860 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000861 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000862 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000863 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000864 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000865 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000866 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000867 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000868 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000869 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000870 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000871 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000872 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000873 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000874 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000875 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000876 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000877 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000878 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000879 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000880 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000881 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000882 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000883 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000884 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000885 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000886 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000887 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000888 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000889 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000890 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000891 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000892 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000893 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000894 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000895 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000896 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000897 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000898 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000899 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000900 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000901 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000902 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000903 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000904 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000905 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000906 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000907 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000908 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000909 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000910 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000911 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000912 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000913 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000914 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000915 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000916 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000917 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000918 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000919 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000920 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000921 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000922 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000923 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000924 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000925 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000926 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000927 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000928 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000929 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000930 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000931 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000932 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000933 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000934 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000935 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000936 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000937 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000938 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000939 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000940 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000941 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000942 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000943 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000944 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000945 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000946 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000947 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000948 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000949 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000950 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000951 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000952 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000953 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000954 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000955 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000956 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000957 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000958 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000959 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000960 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000961 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000962 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000963 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000964 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000965 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000966 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000967 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000968 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000969 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000970 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000971 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000972 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000973 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000974 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000975 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000976 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000977 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000978 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000979 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000980 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000981 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000982 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000983 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000984 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000985 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000986 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000987 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000988 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000989 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000990 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000991 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000992 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000993 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000994 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000995 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000996 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000997 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000998 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000000999 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001000 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001001 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001002 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001003 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001004 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001005 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001006 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001007 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001008 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001009 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001010 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001011 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001012 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001013 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001014 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001015 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001016 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001017 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001018 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001019 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001020 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001021 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001022 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001023 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001024 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001025 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001026 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001027 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001028 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001029 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001030 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001031 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001032 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001033 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001034 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001035 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001036 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001037 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001038 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001039 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001040 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001041 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001042 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001043 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001044 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001045 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001046 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001047 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001048 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001049 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001050 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001051 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001052 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001053 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001054 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001055 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001056 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001057 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001058 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001059 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001060 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001061 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001062 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001063 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001064 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001065 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001066 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001067 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001068 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001069 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001070 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001071 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001072 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001073 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001074 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001075 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001076 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001077 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001078 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001079 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001080 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001081 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001082 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001083 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001084 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001085 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001086 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001087 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001088 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001089 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001090 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001091 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001092 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001093 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001094 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001095 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001096 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001097 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001098 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001099 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001100 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001101 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001102 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001103 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001104 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001105 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001106 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001107 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001108 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001109 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001110 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001111 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001112 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001113 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001114 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001115 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001116 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001117 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001118 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001119 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001120 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001121 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001122 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001123 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001124 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001125 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001126 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001127 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001128 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001129 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001130 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001131 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001132 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001133 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001134 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001135 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001136 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001137 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001138 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001139 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001140 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001141 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001142 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001143 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001144 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001145 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001146 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001147 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001148 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001149 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001150 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001151 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001152 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001153 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001154 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001155 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001156 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001157 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001158 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001159 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001160 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001161 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001162 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001163 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001164 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001165 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001166 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001167 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001168 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001169 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001170 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001171 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001172 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001173 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001174 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001175 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001176 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001177 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001178 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001179 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001180 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001181 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001182 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001183 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001184 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001185 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001186 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001187 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001188 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001189 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001190 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001191 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001192 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001193 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001194 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001195 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001196 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001197 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001198 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001199 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001200 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001201 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001202 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001203 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001204 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001205 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001206 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001207 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001208 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001209 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001210 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001211 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001212 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001213 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001214 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001215 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001216 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001217 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001218 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001219 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001220 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001221 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001222 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001223 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001224 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001225 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001226 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001227 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001228 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001229 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001230 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001231 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001232 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001233 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001234 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001235 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001236 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001237 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001238 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001239 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001240 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001241 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001242 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001243 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001244 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001245 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001246 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001247 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001248 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001249 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001250 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001251 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001252 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001253 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001254 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001255 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001256 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001257 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001258 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001259 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001260 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001261 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001262 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001263 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001264 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001265 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001266 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001267 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001268 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001269 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001270 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001271 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001272 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001273 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001274 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001275 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001276 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001277 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001278 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001279 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001280 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001281 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001282 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001283 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001284 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001285 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001286 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001287 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001288 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001289 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001290 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001291 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001292 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001293 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001294 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001295 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001296 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001297 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001298 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001299 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001300 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001301 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001302 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001303 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001304 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001305 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001306 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001307 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001308 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001309 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001310 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001311 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001312 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001313 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001314 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001315 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001316 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001317 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001318 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001319 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001320 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001321 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001322 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001323 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001324 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001325 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001326 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001327 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001328 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001329 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001330 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001331 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001332 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001333 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001334 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001335 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001336 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001337 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001338 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001339 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001340 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001341 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001342 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001343 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001344 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001345 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001346 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001347 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001348 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001349 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001350 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001351 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001352 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001353 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001354 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001355 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001356 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001357 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001358 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001359 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001360 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001361 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001362 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001363 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001364 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001365 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001366 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001367 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001368 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001369 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001370 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001371 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001372 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001373 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001374 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001375 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001376 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001377 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001378 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001379 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001380 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001381 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001382 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001383 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001384 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001385 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001386 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001387 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001388 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001389 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001390 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001391 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001392 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001393 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001394 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001395 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001396 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001397 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001398 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001399 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001400 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001401 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001402 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001403 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001404 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001405 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001406 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001407 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001408 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001409 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001410 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001411 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001412 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001413 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001414 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001415 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001416 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001417 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001418 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001419 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001420 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001421 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001422 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001423 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001424 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001425 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001426 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001427 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001428 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001429 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001430 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001431 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001432 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001433 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001434 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001435 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001436 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001437 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001438 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001439 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001440 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001441 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001442 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001443 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001444 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001445 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001446 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001447 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001448 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001449 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001450 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001451 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001452 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001453 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001454 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001455 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001456 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001457 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001458 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001459 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001460 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001461 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001462 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001463 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001464 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001465 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001466 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001467 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001468 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001469 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001470 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001471 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001472 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001473 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001474 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001475 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001476 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001477 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001478 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001479 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001480 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001481 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001482 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001483 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001484 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001485 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001486 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001487 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001488 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001489 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001490 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001491 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001492 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001493 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001494 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001495 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001496 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001497 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001498 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001499 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001500 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001501 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001502 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001503 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001504 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001505 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001506 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001507 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001508 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001509 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001510 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001511 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001512 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001513 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001514 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001515 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001516 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001517 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001518 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001519 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001520 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001521 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001522 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001523 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001524 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001525 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001526 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001527 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001528 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001529 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001530 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001531 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001532 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001533 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001534 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001535 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001536 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001537 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001538 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001539 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001540 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001541 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001542 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001543 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001544 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001545 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001546 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001547 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001548 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001549 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001550 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001551 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001552 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001553 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001554 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001555 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001556 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001557 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001558 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001559 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001560 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001561 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001562 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001563 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001564 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001565 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001566 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001567 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001568 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001569 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001570 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001571 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001572 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001573 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001574 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001575 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001576 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001577 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001578 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001579 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001580 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001581 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001582 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001583 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001584 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001585 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001586 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001587 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001588 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001589 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001590 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001591 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001592 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001593 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001594 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001595 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001596 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001597 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001598 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001599 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001600 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001601 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001602 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001603 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001604 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001605 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001606 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001607 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001608 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001609 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001610 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001611 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001612 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001613 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001614 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001615 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001616 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001617 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001618 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001619 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001620 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001621 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001622 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001623 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001624 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001625 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001626 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001627 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001628 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001629 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001630 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001631 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001632 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001633 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001634 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001635 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001636 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001637 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001638 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001639 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001640 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001641 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001642 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001643 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001644 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001645 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001646 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001647 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001648 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001649 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001650 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001651 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001652 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001653 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001654 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001655 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001656 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001657 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001658 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001659 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001660 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001661 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001662 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001663 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001664 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001665 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001666 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001667 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001668 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001669 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001670 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001671 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001672 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001673 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001674 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001675 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001676 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001677 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001678 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001679 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001680 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001681 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001682 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001683 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001684 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001685 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001686 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001687 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001688 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001689 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001690 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001691 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001692 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001693 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001694 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001695 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001696 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001697 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001698 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001699 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001700 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001701 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001702 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001703 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001704 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001705 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001706 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001707 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001708 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001709 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001710 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001711 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001712 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001713 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001714 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001715 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001716 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001717 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001718 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001719 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001720 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001721 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001722 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001723 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001724 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001725 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001726 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001727 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001728 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001729 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001730 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001731 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001732 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001733 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001734 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001735 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001736 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001737 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001738 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001739 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001740 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001741 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001742 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001743 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001744 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001745 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001746 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001747 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001748 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001749 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001750 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001751 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001752 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001753 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001754 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001755 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001756 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001757 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001758 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001759 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001760 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001761 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001762 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001763 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001764 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001765 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001766 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001767 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001768 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001769 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001770 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001771 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001772 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001773 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001774 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001775 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001776 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001777 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001778 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001779 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001780 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001781 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001782 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001783 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001784 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001785 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001786 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001787 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001788 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001789 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001790 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001791 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001792 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001793 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001794 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001795 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001796 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001797 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001798 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001799 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001800 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001801 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001802 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001803 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001804 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001805 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001806 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001807 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001808 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001809 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001810 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001811 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001812 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001813 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001814 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001815 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001816 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001817 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001818 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001819 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001820 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001821 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001822 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001823 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001824 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001825 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001826 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001827 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001828 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001829 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001830 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001831 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001832 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001833 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001834 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001835 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001836 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001837 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001838 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001839 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001840 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001841 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001842 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001843 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001844 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001845 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001846 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001847 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001848 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001849 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001850 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001851 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001852 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001853 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001854 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001855 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001856 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001857 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001858 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001859 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001860 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001861 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001862 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001863 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001864 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001865 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001866 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001867 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001868 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001869 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001870 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001871 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001872 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001873 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001874 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001875 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001876 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001877 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001878 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001879 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001880 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001881 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001882 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001883 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001884 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001885 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001886 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001887 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001888 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001889 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001890 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001891 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001892 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001893 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001894 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001895 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001896 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001897 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001898 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001899 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001900 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001901 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001902 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001903 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001904 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001905 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001906 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001907 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001908 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001909 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001910 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001911 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001912 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001913 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001914 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001915 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001916 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001917 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001918 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001919 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001920 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001921 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001922 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001923 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001924 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001925 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001926 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001927 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001928 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001929 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001930 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001931 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001932 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001933 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001934 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001935 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001936 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001937 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001938 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001939 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001940 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001941 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001942 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001943 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001944 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001945 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001946 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001947 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001948 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001949 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001950 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001951 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001952 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001953 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001954 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001955 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001956 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001957 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001958 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001959 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001960 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001961 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001962 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001963 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001964 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001965 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001966 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001967 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001968 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001969 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001970 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001971 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001972 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001973 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001974 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001975 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001976 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001977 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001978 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001979 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001980 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001981 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001982 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001983 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001984 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001985 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001986 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001987 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001988 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001989 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001990 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001991 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001992 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001993 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001994 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001995 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001996 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001997 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001998 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000001999 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002000 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002001 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002002 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002003 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002004 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002005 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002006 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002007 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002008 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002009 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002010 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002011 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002012 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002013 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002014 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002015 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002016 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002017 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002018 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002019 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002020 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002021 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002022 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002023 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002024 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002025 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002026 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002027 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002028 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002029 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002030 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002031 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002032 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002033 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002034 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002035 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002036 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002037 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002038 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002039 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002040 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002041 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002042 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002043 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002044 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002045 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002046 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002047 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002048 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002049 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002050 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002051 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002052 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002053 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002054 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002055 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002056 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002057 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002058 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002059 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002060 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002061 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002062 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002063 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002064 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002065 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002066 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002067 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002068 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002069 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002070 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002071 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002072 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002073 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002074 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002075 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002076 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002077 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002078 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002079 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002080 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002081 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002082 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002083 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002084 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002085 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002086 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002087 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002088 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002089 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002090 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002091 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002092 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002093 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002094 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002095 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002096 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002097 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002098 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002099 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002100 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002101 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002102 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002103 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002104 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002105 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002106 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002107 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002108 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002109 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002110 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002111 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002112 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002113 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002114 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002115 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002116 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002117 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002118 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002119 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002120 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002121 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002122 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002123 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002124 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002125 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002126 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002127 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002128 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002129 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002130 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002131 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002132 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002133 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002134 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002135 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002136 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002137 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002138 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002139 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002140 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002141 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002142 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002143 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002144 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002145 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002151 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002152 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002153 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002154 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002155 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002156 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002157 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002158 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002159 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002160 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002166 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002167 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002168 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002169 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002170 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002171 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002172 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002173 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002174 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002175 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002182 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002183 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002184 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002185 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002186 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002187 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002193 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002194 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002195 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002196 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002197 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002198 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002204 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002205 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002206 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002207 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002208 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002209 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002215 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002216 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002217 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002218 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002219 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002220 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002226 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002227 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002228 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002229 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002230 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002231 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002237 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002238 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002239 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002240 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002241 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002242 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002248 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002249 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002250 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002251 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002252 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002253 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002259 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002260 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002261 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002262 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002263 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002264 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002270 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002271 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002272 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002273 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002274 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002275 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002281 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002282 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002283 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002284 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002285 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002286 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002292 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002293 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002294 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002295 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002296 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002297 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002303 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002304 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002305 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002306 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002307 (STEP 3A/33) OF XML_TRACE_SENSE - KEY2KB: fetch2programsource4zpufetch2programsource4zpu#000002308 (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/70) started; create2programwithsource4zpu-started: function create2programwithsource4zpu at 0x02EA5C00; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/70) passed; task4program2zpu-to-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1C/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1D/70) initialized; function2callback4zpu-created-by-create2programwithsource4zpu: function trace2program4zpu at 0x02EA5AE0; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/70) initialized; args2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {'FUNCTION2CALLBACK': function trace2program4zpu at 0x02EA5AE0, 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2B/70) got; platform2xi-got-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3A/70) trying; context2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3B/70) got; context2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 4A/70) trying; device2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 4B/70) got; device2zpu-got-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 6A/70) trying; queue2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 6B/70) got; queue2zpu-got-by-create2programwithsource4zpu: queue4xi.Queue4Xi object at 0x029327D0; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/70) trying; pipe2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7B/70) got; pipe2zpu-got-by-create2programwithsource4zpu: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 8A/70) trying; commandqueueinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 8B/70) got; commandqueueinfo2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 9A/70) trying; bufferinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 9B/70) got; bufferinfo2zpu-got-by-create2programwithsource4zpu: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 10A/70) trying; eventinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 10B/70) got; eventinfo2zpu-got-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 11A/70) trying; count2zpu-trying-by-create2programwithsource4zpu: 0; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 11B/70) set; count2zpu-set-by-create2programwithsource4zpu to: 2; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 12B/70) set; dir2zpu-set-by-create2programwithsource4zpu to: e://scope4xi//041721//zap//lib//z//; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4zpu: class 'zpu2program4xi.DirectoryWalker'; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//bin; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 14B/70) set; size2source4zpu-set-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 15B/70) set; language2zpu-set-by-create2programwithsource4zpu to: Python; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 17B/70) set; count2reference2zpu-set-by-create2programwithbinary4zpu to: 1; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 19A/70) using; keys2task-using-by-create2programwithsource4zpu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 20A/70) initialized; zpu2program4xi-initialized-by-create2programwithsource4zpu to: {}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 21A0/70) try; data2callback-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 22B0/70) try; function2callback-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4zpu: function trace2program4zpu at 0x02EA5AE0; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 22C0/70) try; platform-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 22C1/70) initialized; platform-created-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 23A/70) try; context2zpu-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 23B/70) initialized; context-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 24A/70) try; device-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 24B/70) initialized; device-created-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 25A/70) try; code2error-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 25B/70) initialized; code2error-created-by-create2programwithsource4zpu: 0; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 26A/70) try; queue-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 26B/70) initialized; queue-created-by-create2programwithsource4zpu: queue4xi.Queue4Xi object at 0x029327D0; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 27A/70) try; pipe-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 27B/70) initialized; pipe-created-by-create2programwithsource4zpu: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 28A/70) try; commandqueue-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 29A/70) try; bufferinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4zpu: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 30A/70) try; eventinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31A1/70) try; task4program2zpu-try-by-create2programwithsource4zpu: {'CODE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}, 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'BUFFER': {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}, 'SIZE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}, 'DIRECTORY': 'e://scope4xi//041721//zap//lib//z//', 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0), 'COUNT': 2, 'QUEUE': queue4xi.Queue4Xi object at 0x029327D0, 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'EVENT': {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}, 'LANGUAGE': 'Python', 'FUNCTION2CALLBACK': function trace2program4zpu at 0x02EA5AE0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'COUNT2REFERENCE': 1, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31A2/70) try; count-try-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31B/70) initialized; count-created-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 32A/70) try; directory-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 32B/70) initialized; directory-created-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 33A/70) try; codetask-try-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 33B/70) created; code-created-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 34A/70) try; size-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 34B/70) initialized; size-initialized-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 35A/70) try; language-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 35B/70) initialized; language-created-by-create2programwithsource4zpu: Python; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 36A/70) try; count2reference-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 36B/70) initialized; count2reference-created-by-create2programwithsource4zpu: 1; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DIRECTORY4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COMMANDQUEUE; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: NACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: BUFFER; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: LANGUAGE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DATA2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PIPE; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: ACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: QUEUE; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PLATFORM; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: EVENT; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: FUNCTION2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CONTEXT; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: SIZE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT2REFERENCE; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE2ERROR; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DEVICE; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//index', '.html'); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: html; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//z2scope4xi', '.txt'); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: txt; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 3; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // zpu2dummy4xi5test.cpp ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include stdlib.h ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include stdio.h ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include CL/opencl.h ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID 0 ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID2 1 ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Program source ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const char* KernelSource = ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " __kernel void simple( __global float* A) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = A[tid] + 5; \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple2(__global float *A, int nLoops) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " for (int i = 0; i nLoops; i++) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " } \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " if (tid entries) \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " B[tid] = 2 * A[tid]; \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n"; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // native kernel data structure ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *inData; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *outData; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int size; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "myNativeKernel" usage = "native kernel"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void myNativeKernel(void *data) { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData *NKData = (struct myNativeKernelData*)data; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data passed to native kernel\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i NKData-size; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (i (NKData-size -5)) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,NKData-inData[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: NKData-outData[i] = 2*NKData-inData[i]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void printKernelTimes(cl_event event,char *eventName) { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: static cl_ulong baseTime = -1; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_ulong sTime,eTime; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Set the base time and then subtract it to make the numbers easier to read ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (baseTime == -1) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: baseTime = sTime; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (err != CL_SUCCESS) { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Failed to get times for %s\n",eventName); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("%s started at %ld, finished at %ld\n",eventName,(sTime - baseTime),(eTime - baseTime)); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "OCLError" usage = "error code checking"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void OCLError(cl_int err, int line) { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (err != CL_SUCCESS) { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Error at line %d\n",line); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: exit(1); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "nbody_kern" usage = "kernel example 1"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __kernel void nbody_kern( ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float dt1, float eps, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_old, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_new, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* vel, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __local float4* pblock ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int gti = get_global_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int ti = get_local_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int n = get_global_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nt = get_local_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nb = n/nt; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p = pos_old[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 v = vel[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: p += dt*v + 0.5f*dt*dt*a; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: v += dt*a; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pos_new[gti] = p; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: vel[gti] = v; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __kernel void nbody_kern( ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float dt1, float eps, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_old, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_new, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* vel, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __local float4* pblock, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos2 ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ) { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int gti = get_global_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int ti = get_local_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int n = get_global_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nt = get_local_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nb = n/nt; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p = pos_old[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 v = vel[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "main" usage = "main"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int main() { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // OpenCL Platform, Device etc vars ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_id *Devices; // OpenCL device ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_context Context; // OpenCL context ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: static cl_platform_id Platform; // OpenCL platform ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_program Program; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_command_queue *CommandQs; // OpenCL command queues ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_int err; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Get platform IDs ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetPlatformIDs( 1, Platform, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get all devices ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_uint nDevices = -1; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (nDevices 3) { printf("Num Devices less than 3\n"); exit(1); } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id)); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create a compute context ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create a command queue ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue)); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i nDevices; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create the compute program from the source buffer ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create the compute kernel from the program ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel = clCreateKernel(Program, "simple", err); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // kernel data vars ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *a_h; // host memory used for original data and return data ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem a_d; // device memory used for input/output ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem b_d; // device memory used for output ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: size_t entries = 64000000; // number of entries in the array ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: size_t local = 1; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int count = 100; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_h = (float *)malloc(entries*sizeof(float)); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i =0; i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_h[i] = (1 25) + 6; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel2, 1, sizeof(int), count); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k2Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k1Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Now try enqueueing a native kernel ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Find a queue that is associated with a CPU device (assumes 1 queue per device) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_command_queue CPUQueue = NULL; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i nDevices; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_id qDevID; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_type DevType; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_exec_capabilities DevExecCap; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get the device attached to this queue ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get the type of this device ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // compare the device_type for this device ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) || ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CPUQueue = CommandQs[i]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k3Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event eventLists[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: eventLists[0] = k2Event[0]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: eventLists[1] = k1Event[0]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (CPUQueue != NULL) { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #ifndef NATIVEK ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 2, sizeof(int), entries); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #else ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Allocate and populate the data structure for the nativeKernel ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData NKData; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: NKData.size = entries; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem memList[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memList[0] = a_d; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memList[1] = b_d; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void *memLocs[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memLocs[0] = (NKData.inData); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memLocs[1] = (NKData.outData); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Enqueue the kernel ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #endif ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data from b_d\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = (entries - 5); i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("No CPU device found\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data from a_d, should be half of data from b_d\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = (entries - 5); i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k2Event[0],"Kernel 2"); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k1Event[0],"Kernel 1"); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k3Event[0],"Kernel 3"); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // tidy up ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(Devices); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(CommandQs); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(a_h); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clReleaseMemObject(a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clReleaseMemObject(b_d); ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 1; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #profile4xi profile = "11" / ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #program4xi program = "zpu2sampler4xi5test.py" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #abstract4xi abstract = "tests zpu2sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #verify4xi verification = "11" target = "zpu2sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #contextualize4xi context = "sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Public API ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #interface4xi interface = " ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __all__ = ['zpu2sampler4xi5test'] ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Standard Imports ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #standardize4xi standard = " ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import os ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import sys ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import threading ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import _thread ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import signal ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import itertools ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import weakref ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import logging ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Scope4Xi imports ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #dragonize4xi dragonization = " ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import version4xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Multiprocessing Imports ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #process4xi process = " ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import _multiprocessing ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DragonXi imports ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #dragonize4xi dragonization = " ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pipe4xi import Pipe4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platformids4xi import get2platformids4xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from queue4xi import Queue4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Command queue module ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import ZPU2CommandQueue4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import create2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import flush2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import finish2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import get2commandqueueinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import release2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import retain2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import set2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import trace2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Context module ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import ZPU2Context4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import create2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import get2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import release2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import retain2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import set2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Device module ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import ZPU4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import init2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import set2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import get2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Event module ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import ZPU2Event4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import create2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import get2eventinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import release2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import retain2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import set2eventcallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import set2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import trace2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import wait2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Image module ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import ZPU2Image4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import create2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import get2imageinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import get2supportedimageformats4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copyimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copybuffertoimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2readimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2writeimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2mapimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2imagetobuffer4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2buffertoimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import read2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import map2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import release2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import retain2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import set2imagecallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import set2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import trace2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import wait2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import write2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Sampler module ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import ZPU2Sampler4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import create2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import get2samplerinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import release2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import retain2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import set2samplercallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import set2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import trace2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Platform module ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import PlatformInfo4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import init2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import set2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import get2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Trace modules ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !! ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2a4xi import Pickle2a4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2b4xi import Pickle2b4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2c4xi import Pickle2c4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2d4xi import Pickle2d4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2e4xi import Pickle2e4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2f4xi import Pickle2f4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2g4xi import Pickle2g4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2h4xi import Pickle2h4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2i4xi import Pickle2i4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2j4xi import Pickle2j4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2k4xi import Pickle2k4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2l4xi import Pickle2l4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2m4xi import Pickle2m4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2n4xi import Pickle2n4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2o4xi import Pickle2o4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2p4xi import Pickle2p4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2q4xi import Pickle2q4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2r4xi import Pickle2r4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2s4xi import Pickle2s4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2t4xi import Pickle2t4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2u4xi import Pickle2u4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2v4xi import Pickle2v4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2w4xi import Pickle2w4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2x4xi import Pickle2x4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2y4xi import Pickle2y4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2z4xi import Pickle2z4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2_4xi import Pickle2_4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2a4xi import Actor2a4Xi # define functions and class for zapping ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on! ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2c4xi import Actor2c4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2d4xi import Actor2d4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2e4xi import Actor2e4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2f4xi import Actor2f4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2g4xi import Actor2g4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2h4xi import Actor2h4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2i4xi import Actor2i4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2j4xi import Actor2j4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2k4xi import Actor2k4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2l4xi import Actor2l4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2m4xi import Actor2m4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2n4xi import Actor2n4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2o4xi import Actor2o4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2p4xi import Actor2p4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2q4xi import Actor2q4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2r4xi import Actor2r4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2s4xi import Actor2s4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2t4xi import Actor2t4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2u4xi import Actor2u4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2v4xi import Actor2v4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2w4xi import Actor2w4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2x4xi import Actor2x4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2y4xi import Actor2y4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2z4xi import Actor2z4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2_4xi import Actor2_4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from time4xi import time4xi # time stamp to events ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_sense4xi import xml_trace_sense4xi # XML trace ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_reason4xi import xml_trace_reason4xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_ace4xi import xml_trace_ace4xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Global constants ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #globalize4xi globalization = " ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Settings ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #set4xi setting = " ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: PickleKB4Xi = { ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'a': Pickle2a4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'b': Pickle2b4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'c': Pickle2c4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'd': Pickle2d4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'e': Pickle2e4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'f': Pickle2f4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'g': Pickle2g4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'h': Pickle2h4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'i': Pickle2i4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'j': Pickle2j4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'k': Pickle2k4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'l': Pickle2l4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'm': Pickle2m4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'n': Pickle2n4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'o': Pickle2o4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'p': Pickle2p4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'q': Pickle2q4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'r': Pickle2r4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 's': Pickle2s4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 't': Pickle2t4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'u': Pickle2u4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'v': Pickle2v4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'w': Pickle2w4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'x': Pickle2x4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'y': Pickle2y4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'z': Pickle2z4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: '_': Pickle2_4Xi} ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"/ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions ! ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def set2trace4xi(): ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING LETTER : ", key2pickledb) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("PICKLED object: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Mark those with NACK4XI to be traced ! ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if dictionary2pickle[key2dictionary] == 'NACK4XI': ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = True ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pass ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "deny2trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # deny trace using pickle4xi functions ! ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def deny2trace4xi(): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STEP: PICKLED object: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK4XI = tested .i.e. NOT to be traced! ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'ACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle[key2dictionary] = 'ACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # _, a ... z ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "tailor2trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # tailors trace ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def tailor2trace4xi(): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Settings to tailor trace ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #set4xi setting = " ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: KB4Tailoring = { ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ZPU2Sampler4Xi': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'create2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'get2samplerinfo4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'retain2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'release2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'trace2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'set2samplercallback4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'set2sampler4zpu': 'NACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"/ ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PROCESS KB4Tailoring ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2tailor = sorted(KB4Tailoring.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2tailor in keys2tailor: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'NACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = key2tailor ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EOF KEYS ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "print-trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print XML trace for sampler4zpu test ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def print2trace4xi(t2xi): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # SENSE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2sense = { ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="Dragon4Xi#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="sensed#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_sense4xi(t2xi, context2sense) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # REASON ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2reason = { ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Operations/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'operation_comment4xi': ' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="reasoned#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="reason#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"reason/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_reason4xi(t2xi, context2reason) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2ace = { ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Acing of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="ACE4Xi#0000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="ace#0000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"000000/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_ace4xi(t2xi, context2ace) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # end of print2trace4xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "zpu2sampler4xi5test" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # tests sampler4zpu ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def zpu2sampler4xi5test(): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # INITIALIZE TRACE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi = Print4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set2trace4xi() # trace all classes and functions in the system ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: deny2trace4xi() # deny trace for all classes and functions in the system ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: tailor2trace4xi() # tailor trace for this test ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # START TESTING ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = create2sampler4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4samplerinfo2zpu.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4samplerinfo2zpu[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (1) GET PLATFORM IDs TO SET CONTEXT ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = get2platformids4xi() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (2) INITIALIZE DEVICE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: device2zpu = init2zpu4xi() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (3) CREATE CONTEXT ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2zpu = create2context4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE PROPERTIES - NONE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PROPERTIES'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) DEFINE ERROR CODE - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) SET QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # queue4xi.Queue4Xi object at 0x0000000003B050F0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET PIPE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET REST ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET SAMPLER - FINALLY! ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = set2sampler4zpu(task4set2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0 ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = release2sampler4zpu(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = retain2sampler4zpu(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (14) SAMPLER CALLBACK ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4setcallback2sampler = set2samplercallback4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: TRACE FUNCTION TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = trace2sampler4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CREATE WITH OBJECT ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: samplerobject2zpu = ZPU2Sampler4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT') ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - GET METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4get2samplerinfo.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4get2samplerinfo[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE ERROR CODE - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) PIPE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET COMMAND QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET ADDRESSINGMODE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) SET FILTERINGMODE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_FILTER_LINEAR ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_LINEAR ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xi2zpu = ZPU2Sampler4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = xi2zpu.create2sampler() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: callback2zpu = xi2zpu.set2samplercallback() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - TRACE SAMPLERS ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = xi2zpu.trace2sampler() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = xi2zpu.release2sampler(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SENSE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.sense()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - REASON SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.reason()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - ACE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.ace()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DONE - ALL TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: finally: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Print Trace ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print2trace4xi(t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "main" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # main function for zpu2sampler4xi5test ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def main(): ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: zpu2sampler4xi5test() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # __main__ ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if __name__ == '__main__': ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: main() ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/program4xi ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Recorded History ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #record4xi record = " ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # zpu2sampler4xi5test.txt ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # sense-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # reason-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ace-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #acknowledge4xi acknowledgement = "33" tester = "Small Smart"/ ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # to-be-done ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #do4xi do = " ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # nothing ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #note4xi note = " ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # parse4xi.py - to parse this module ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # "/ ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Legal Notice ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #protect4xi protection = "copyright" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # owner = "Small Smart" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # rights = "All rights reserved" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # state = "California" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # country = "United States of America" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # codes = "Codes established in California and applicable to corporations in California" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # compliance = "The California Law" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #end4xi end = " ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # end of zpu2sampler4xi5test.py ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\version4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\z2skeleton4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2buffer4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2commandqueue4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2context4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2device4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2event4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2kernel4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2program4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2sampler4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu3image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} (STEP 3B/33) OF XML_TRACE_SENSE - VALUE: {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_sense4xi: filepath2xi: E:\scope4xi\041721\zap\web\xml\sense-zpu2program4xi5test.xml xml_trace_sense4xi: opened f2xi: <_io.TextIOWrapper name='E:\\scope4xi\\041721\\zap\\web\\xml\\sense-zpu2program4xi5test.xml' mode='w' encoding='cp1252'> ================================= xml_trace_sense4xi: opened XML file: E:\scope4xi\041721\zap\web\xml\sense-zpu2program4xi5test.xml ================================= --------------------------------- xml_trace_sense4xi: create header for XML file --------------------------------- --------------------------------- SENSING of xml_trace_sense4xi: create body for XML file --------------------------------- SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1A/70) started; create2programwithsource4zpu-started: function create2programwithsource4zpu at 0x02EA5C00; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1B/70) passed; task4program2zpu-to-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1C/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1D/70) initialized; function2callback4zpu-created-by-create2programwithsource4zpu: function trace2program4zpu at 0x02EA5AE0; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1E/70) initialized; args2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1F/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {'FUNCTION2CALLBACK': function trace2program4zpu at 0x02EA5AE0, 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 2B/70) got; platform2xi-got-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 3A/70) trying; context2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 3B/70) got; context2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 4A/70) trying; device2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 4B/70) got; device2zpu-got-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 6A/70) trying; queue2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 6B/70) got; queue2zpu-got-by-create2programwithsource4zpu: queue4xi.Queue4Xi object at 0x029327D0; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 7A/70) trying; pipe2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 7B/70) got; pipe2zpu-got-by-create2programwithsource4zpu: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 8A/70) trying; commandqueueinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 8B/70) got; commandqueueinfo2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 9A/70) trying; bufferinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 9B/70) got; bufferinfo2zpu-got-by-create2programwithsource4zpu: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 10A/70) trying; eventinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 10B/70) got; eventinfo2zpu-got-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 11A/70) trying; count2zpu-trying-by-create2programwithsource4zpu: 0; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 11B/70) set; count2zpu-set-by-create2programwithsource4zpu to: 2; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 12B/70) set; dir2zpu-set-by-create2programwithsource4zpu to: e://scope4xi//041721//zap//lib//z//; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4zpu: class 'zpu2program4xi.DirectoryWalker'; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//bin; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14B/70) set; size2source4zpu-set-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 15B/70) set; language2zpu-set-by-create2programwithsource4zpu to: Python; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 17B/70) set; count2reference2zpu-set-by-create2programwithbinary4zpu to: 1; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 19A/70) using; keys2task-using-by-create2programwithsource4zpu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 20A/70) initialized; zpu2program4xi-initialized-by-create2programwithsource4zpu to: {}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 21A0/70) try; data2callback-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 22B0/70) try; function2callback-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4zpu: function trace2program4zpu at 0x02EA5AE0; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 22C0/70) try; platform-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 22C1/70) initialized; platform-created-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 23A/70) try; context2zpu-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 23B/70) initialized; context-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 24A/70) try; device-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 24B/70) initialized; device-created-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 25A/70) try; code2error-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 25B/70) initialized; code2error-created-by-create2programwithsource4zpu: 0; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 26A/70) try; queue-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 26B/70) initialized; queue-created-by-create2programwithsource4zpu: queue4xi.Queue4Xi object at 0x029327D0; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 27A/70) try; pipe-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 27B/70) initialized; pipe-created-by-create2programwithsource4zpu: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 28A/70) try; commandqueue-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 29A/70) try; bufferinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4zpu: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 30A/70) try; eventinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 31A1/70) try; task4program2zpu-try-by-create2programwithsource4zpu: {'CODE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}, 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'BUFFER': {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}, 'SIZE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}, 'DIRECTORY': 'e://scope4xi//041721//zap//lib//z//', 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0), 'COUNT': 2, 'QUEUE': queue4xi.Queue4Xi object at 0x029327D0, 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'EVENT': {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}, 'LANGUAGE': 'Python', 'FUNCTION2CALLBACK': function trace2program4zpu at 0x02EA5AE0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'COUNT2REFERENCE': 1, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 31A2/70) try; count-try-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 31B/70) initialized; count-created-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 32A/70) try; directory-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 32B/70) initialized; directory-created-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 33A/70) try; codetask-try-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 33B/70) created; code-created-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 34A/70) try; size-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 34B/70) initialized; size-initialized-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 35A/70) try; language-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 35B/70) initialized; language-created-by-create2programwithsource4zpu: Python; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 36A/70) try; count2reference-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 36B/70) initialized; count2reference-created-by-create2programwithsource4zpu: 1; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DIRECTORY4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COMMANDQUEUE; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: NACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: BUFFER; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: LANGUAGE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DATA2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PIPE; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: ACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: QUEUE; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PLATFORM; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: EVENT; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: FUNCTION2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CONTEXT; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: SIZE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT2REFERENCE; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE2ERROR; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DEVICE; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//index', '.html'); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: html; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//z2scope4xi', '.txt'); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: txt; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 3; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // zpu2dummy4xi5test.cpp ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include stdlib.h ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include stdio.h ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include CL/opencl.h ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID 0 ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID2 1 ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Program source ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const char* KernelSource = ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " __kernel void simple( __global float* A) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = A[tid] + 5; \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple2(__global float *A, int nLoops) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " for (int i = 0; i nLoops; i++) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " } \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " if (tid entries) \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " B[tid] = 2 * A[tid]; \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n"; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // native kernel data structure ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *inData; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *outData; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int size; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "myNativeKernel" usage = "native kernel"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void myNativeKernel(void *data) { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData *NKData = (struct myNativeKernelData*)data; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data passed to native kernel\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i NKData-size; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (i (NKData-size -5)) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,NKData-inData[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: NKData-outData[i] = 2*NKData-inData[i]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void printKernelTimes(cl_event event,char *eventName) { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: static cl_ulong baseTime = -1; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_ulong sTime,eTime; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Set the base time and then subtract it to make the numbers easier to read ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (baseTime == -1) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: baseTime = sTime; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (err != CL_SUCCESS) { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Failed to get times for %s\n",eventName); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("%s started at %ld, finished at %ld\n",eventName,(sTime - baseTime),(eTime - baseTime)); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "OCLError" usage = "error code checking"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void OCLError(cl_int err, int line) { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (err != CL_SUCCESS) { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Error at line %d\n",line); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: exit(1); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "nbody_kern" usage = "kernel example 1"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __kernel void nbody_kern( ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float dt1, float eps, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_old, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_new, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* vel, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __local float4* pblock ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int gti = get_global_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int ti = get_local_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int n = get_global_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nt = get_local_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nb = n/nt; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p = pos_old[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 v = vel[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: p += dt*v + 0.5f*dt*dt*a; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: v += dt*a; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pos_new[gti] = p; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: vel[gti] = v; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __kernel void nbody_kern( ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float dt1, float eps, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_old, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_new, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* vel, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __local float4* pblock, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos2 ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ) { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int gti = get_global_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int ti = get_local_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int n = get_global_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nt = get_local_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nb = n/nt; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p = pos_old[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 v = vel[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "main" usage = "main"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int main() { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // OpenCL Platform, Device etc vars ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_id *Devices; // OpenCL device ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_context Context; // OpenCL context ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: static cl_platform_id Platform; // OpenCL platform ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_program Program; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_command_queue *CommandQs; // OpenCL command queues ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_int err; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Get platform IDs ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetPlatformIDs( 1, Platform, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get all devices ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_uint nDevices = -1; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (nDevices 3) { printf("Num Devices less than 3\n"); exit(1); } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id)); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create a compute context ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create a command queue ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue)); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i nDevices; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create the compute program from the source buffer ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create the compute kernel from the program ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel = clCreateKernel(Program, "simple", err); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // kernel data vars ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *a_h; // host memory used for original data and return data ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem a_d; // device memory used for input/output ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem b_d; // device memory used for output ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: size_t entries = 64000000; // number of entries in the array ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: size_t local = 1; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int count = 100; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_h = (float *)malloc(entries*sizeof(float)); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i =0; i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_h[i] = (1 25) + 6; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel2, 1, sizeof(int), count); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k2Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k1Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Now try enqueueing a native kernel ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Find a queue that is associated with a CPU device (assumes 1 queue per device) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_command_queue CPUQueue = NULL; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i nDevices; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_id qDevID; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_type DevType; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_exec_capabilities DevExecCap; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get the device attached to this queue ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get the type of this device ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // compare the device_type for this device ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) || ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CPUQueue = CommandQs[i]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k3Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event eventLists[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: eventLists[0] = k2Event[0]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: eventLists[1] = k1Event[0]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (CPUQueue != NULL) { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #ifndef NATIVEK ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 2, sizeof(int), entries); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #else ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Allocate and populate the data structure for the nativeKernel ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData NKData; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: NKData.size = entries; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem memList[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memList[0] = a_d; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memList[1] = b_d; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void *memLocs[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memLocs[0] = (NKData.inData); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memLocs[1] = (NKData.outData); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Enqueue the kernel ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #endif ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data from b_d\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = (entries - 5); i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("No CPU device found\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data from a_d, should be half of data from b_d\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = (entries - 5); i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k2Event[0],"Kernel 2"); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k1Event[0],"Kernel 1"); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k3Event[0],"Kernel 3"); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // tidy up ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(Devices); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(CommandQs); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(a_h); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clReleaseMemObject(a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clReleaseMemObject(b_d); ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 1; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #profile4xi profile = "11" / ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #program4xi program = "zpu2sampler4xi5test.py" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #abstract4xi abstract = "tests zpu2sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #verify4xi verification = "11" target = "zpu2sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #contextualize4xi context = "sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Public API ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #interface4xi interface = " ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __all__ = ['zpu2sampler4xi5test'] ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Standard Imports ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #standardize4xi standard = " ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import os ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import sys ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import threading ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import _thread ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import signal ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import itertools ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import weakref ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import logging ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Scope4Xi imports ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #dragonize4xi dragonization = " ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import version4xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Multiprocessing Imports ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #process4xi process = " ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import _multiprocessing ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DragonXi imports ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #dragonize4xi dragonization = " ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pipe4xi import Pipe4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platformids4xi import get2platformids4xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from queue4xi import Queue4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Command queue module ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import ZPU2CommandQueue4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import create2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import flush2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import finish2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import get2commandqueueinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import release2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import retain2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import set2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import trace2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Context module ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import ZPU2Context4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import create2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import get2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import release2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import retain2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import set2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Device module ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import ZPU4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import init2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import set2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import get2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Event module ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import ZPU2Event4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import create2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import get2eventinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import release2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import retain2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import set2eventcallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import set2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import trace2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import wait2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Image module ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import ZPU2Image4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import create2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import get2imageinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import get2supportedimageformats4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copyimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copybuffertoimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2readimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2writeimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2mapimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2imagetobuffer4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2buffertoimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import read2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import map2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import release2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import retain2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import set2imagecallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import set2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import trace2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import wait2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import write2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Sampler module ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import ZPU2Sampler4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import create2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import get2samplerinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import release2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import retain2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import set2samplercallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import set2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import trace2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Platform module ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import PlatformInfo4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import init2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import set2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import get2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Trace modules ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !! ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2a4xi import Pickle2a4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2b4xi import Pickle2b4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2c4xi import Pickle2c4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2d4xi import Pickle2d4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2e4xi import Pickle2e4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2f4xi import Pickle2f4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2g4xi import Pickle2g4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2h4xi import Pickle2h4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2i4xi import Pickle2i4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2j4xi import Pickle2j4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2k4xi import Pickle2k4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2l4xi import Pickle2l4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2m4xi import Pickle2m4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2n4xi import Pickle2n4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2o4xi import Pickle2o4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2p4xi import Pickle2p4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2q4xi import Pickle2q4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2r4xi import Pickle2r4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2s4xi import Pickle2s4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2t4xi import Pickle2t4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2u4xi import Pickle2u4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2v4xi import Pickle2v4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2w4xi import Pickle2w4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2x4xi import Pickle2x4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2y4xi import Pickle2y4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2z4xi import Pickle2z4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2_4xi import Pickle2_4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2a4xi import Actor2a4Xi # define functions and class for zapping ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on! ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2c4xi import Actor2c4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2d4xi import Actor2d4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2e4xi import Actor2e4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2f4xi import Actor2f4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2g4xi import Actor2g4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2h4xi import Actor2h4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2i4xi import Actor2i4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2j4xi import Actor2j4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2k4xi import Actor2k4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2l4xi import Actor2l4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2m4xi import Actor2m4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2n4xi import Actor2n4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2o4xi import Actor2o4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2p4xi import Actor2p4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2q4xi import Actor2q4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2r4xi import Actor2r4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2s4xi import Actor2s4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2t4xi import Actor2t4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2u4xi import Actor2u4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2v4xi import Actor2v4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2w4xi import Actor2w4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2x4xi import Actor2x4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2y4xi import Actor2y4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2z4xi import Actor2z4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2_4xi import Actor2_4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from time4xi import time4xi # time stamp to events ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_sense4xi import xml_trace_sense4xi # XML trace ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_reason4xi import xml_trace_reason4xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_ace4xi import xml_trace_ace4xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Global constants ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #globalize4xi globalization = " ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Settings ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #set4xi setting = " ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: PickleKB4Xi = { ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'a': Pickle2a4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'b': Pickle2b4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'c': Pickle2c4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'd': Pickle2d4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'e': Pickle2e4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'f': Pickle2f4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'g': Pickle2g4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'h': Pickle2h4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'i': Pickle2i4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'j': Pickle2j4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'k': Pickle2k4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'l': Pickle2l4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'm': Pickle2m4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'n': Pickle2n4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'o': Pickle2o4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'p': Pickle2p4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'q': Pickle2q4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'r': Pickle2r4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 's': Pickle2s4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 't': Pickle2t4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'u': Pickle2u4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'v': Pickle2v4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'w': Pickle2w4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'x': Pickle2x4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'y': Pickle2y4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'z': Pickle2z4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: '_': Pickle2_4Xi} ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"/ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions ! ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def set2trace4xi(): ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING LETTER : ", key2pickledb) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("PICKLED object: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Mark those with NACK4XI to be traced ! ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if dictionary2pickle[key2dictionary] == 'NACK4XI': ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = True ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pass ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "deny2trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # deny trace using pickle4xi functions ! ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def deny2trace4xi(): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STEP: PICKLED object: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK4XI = tested .i.e. NOT to be traced! ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'ACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle[key2dictionary] = 'ACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # _, a ... z ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "tailor2trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # tailors trace ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def tailor2trace4xi(): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Settings to tailor trace ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #set4xi setting = " ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: KB4Tailoring = { ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ZPU2Sampler4Xi': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'create2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'get2samplerinfo4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'retain2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'release2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'trace2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'set2samplercallback4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'set2sampler4zpu': 'NACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"/ ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PROCESS KB4Tailoring ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2tailor = sorted(KB4Tailoring.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2tailor in keys2tailor: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'NACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = key2tailor ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EOF KEYS ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "print-trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print XML trace for sampler4zpu test ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def print2trace4xi(t2xi): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # SENSE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2sense = { ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="Dragon4Xi#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="sensed#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_sense4xi(t2xi, context2sense) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # REASON ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2reason = { ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Operations/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'operation_comment4xi': ' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="reasoned#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="reason#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"reason/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_reason4xi(t2xi, context2reason) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2ace = { ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Acing of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="ACE4Xi#0000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="ace#0000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"000000/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_ace4xi(t2xi, context2ace) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # end of print2trace4xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "zpu2sampler4xi5test" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # tests sampler4zpu ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def zpu2sampler4xi5test(): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # INITIALIZE TRACE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi = Print4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set2trace4xi() # trace all classes and functions in the system ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: deny2trace4xi() # deny trace for all classes and functions in the system ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: tailor2trace4xi() # tailor trace for this test ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # START TESTING ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = create2sampler4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4samplerinfo2zpu.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4samplerinfo2zpu[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (1) GET PLATFORM IDs TO SET CONTEXT ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = get2platformids4xi() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (2) INITIALIZE DEVICE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: device2zpu = init2zpu4xi() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (3) CREATE CONTEXT ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2zpu = create2context4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE PROPERTIES - NONE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PROPERTIES'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) DEFINE ERROR CODE - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) SET QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # queue4xi.Queue4Xi object at 0x0000000003B050F0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET PIPE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET REST ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET SAMPLER - FINALLY! ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = set2sampler4zpu(task4set2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0 ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = release2sampler4zpu(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = retain2sampler4zpu(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (14) SAMPLER CALLBACK ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4setcallback2sampler = set2samplercallback4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: TRACE FUNCTION TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = trace2sampler4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CREATE WITH OBJECT ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: samplerobject2zpu = ZPU2Sampler4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT') ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - GET METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4get2samplerinfo.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4get2samplerinfo[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE ERROR CODE - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) PIPE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET COMMAND QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET ADDRESSINGMODE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) SET FILTERINGMODE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_FILTER_LINEAR ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_LINEAR ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xi2zpu = ZPU2Sampler4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = xi2zpu.create2sampler() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: callback2zpu = xi2zpu.set2samplercallback() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - TRACE SAMPLERS ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = xi2zpu.trace2sampler() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = xi2zpu.release2sampler(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SENSE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.sense()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - REASON SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.reason()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - ACE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.ace()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DONE - ALL TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: finally: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Print Trace ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print2trace4xi(t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "main" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # main function for zpu2sampler4xi5test ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def main(): ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: zpu2sampler4xi5test() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # __main__ ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if __name__ == '__main__': ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: main() ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/program4xi ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Recorded History ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #record4xi record = " ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # zpu2sampler4xi5test.txt ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # sense-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # reason-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ace-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #acknowledge4xi acknowledgement = "33" tester = "Small Smart"/ ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # to-be-done ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #do4xi do = " ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # nothing ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #note4xi note = " ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # parse4xi.py - to parse this module ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # "/ ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Legal Notice ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #protect4xi protection = "copyright" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # owner = "Small Smart" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # rights = "All rights reserved" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # state = "California" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # country = "United States of America" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # codes = "Codes established in California and applicable to corporations in California" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # compliance = "The California Law" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #end4xi end = " ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # end of zpu2sampler4xi5test.py ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\version4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\z2skeleton4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2buffer4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2commandqueue4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2context4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2device4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2event4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2kernel4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2program4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2sampler4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu3image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} SENSE writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 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-zpu2program4xi5test.xml --------------------------------- --------------------------------- xml_trace_sense4xi: closed XML file: E:\scope4xi\041721\zap\web\xml\sense-zpu2program4xi5test.xml --------------------------------- --------------------------------- xml_trace_sense4xi: returning 08:41:49 02/18/15 FLE Standard Time --------------------------------- (STEP 1A/33) OF XML_TRACE_REASON4XI - STARTED REASONING 08:41:49 02/18/15 FLE Standard Time (STEP 1B/33) OF XML_TRACE_REASON4XI - SET C2XI TO: {'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\n', 'class0_id4xi': ' \n', 'object_property_comment4xi': ' reason\n', 'operation_comment4xi': ' Operations for Program of ZPU.\n', 'ontology_about4xi': ' \n', 'debug4xi': True, 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-zpu2program4xi5test.xml', 'class0_comment4xi': ' Operations with context.\n', 'ontology_comment4xi': ' Operations\n', 'object_property_rdf4xi': ' \n', 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n'} (STEP 1C/33) OF XML_TRACE_REASON4XI - SET T2XI TO: (STEP 2A/33) OF XML_TRACE_REASON4XI - TRYING TO SET KNOWLEDGEBASE 08:41:49 02/18/15 FLE Standard Time (STEP 2B/33) OF XML_TRACE_REASON4XI - SET KNOWLEDGEBASE TO : {'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002190': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001582': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001950': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000688': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000432': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000235': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int size;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001833': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002157': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedcreate2programwithsource4zpucreate2programwithsource4zpu#000000002': '{(Step 1B/70) passed; task4program2zpu-to-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002050': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000572': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000643': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001899': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002028': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001354': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (1) GET PLATFORM IDs TO SET CONTEXT\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002026': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000893': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2q4xi import Actor2q4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000581': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001566': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001925': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002286': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001285': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000625': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000895': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2s4xi import Actor2s4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000362': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // OpenCL Platform, Device etc vars\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002187': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001666': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000014': '{(Step 6B/70) got; queue2zpu-got-by-create2programwithsource4zpu: queue4xi.Queue4Xi object at 0x029327D0; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000032': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000315': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002107': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001959': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001554': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001353': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001485': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002000': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000746': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000420': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000447': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_type DevType;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001892': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002183': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000426': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001202': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002291': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001756': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001669': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000283': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_old,\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001689': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001044': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000987': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) \n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002069': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002283': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\zpu2program4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001561': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000294': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nb = n/nt;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001361': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = get2platformids4xi()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002119': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # "/\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001031': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33)\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001368': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001976': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002351': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DIRECTORY4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000994': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000593': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000242': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data passed to native kernel\\n");\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000995': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001027': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001400': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001379': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001002': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001731': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001548': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001835': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000192': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001511': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002106': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000697': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Public API\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000627': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001814': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000478': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001403': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001022': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001747': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001288': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000530': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(a_h);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001863': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001838': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000469': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event eventLists[2];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000857': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2j4xi import Pickle2j4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001938': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001100': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000157': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001456': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000663': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001879': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001029': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33)\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001185': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001355': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000680': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002353': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000835': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import set2platforminfo4xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000288': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001762': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001996': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002040': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002336': '{(Step 30A/70) try; eventinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001984': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002248': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001528': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000573': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001675': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001744': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000122': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000739': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DragonXi imports \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001958': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001844': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001824': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001006': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000089': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002250': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\zpu2event4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'setfetch2programsource4zpufetch2programsource4zpu#000000191': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000538': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002257': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001414': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000774': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import init2zpu4xi \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001459': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001630': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-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:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001492': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000419': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001846': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000265': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000303': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001612': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000574': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002018': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000969': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002053': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001563': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001965': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000825': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import retain2sampler4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000584': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001787': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001217': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001155': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001349': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001209': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000169': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000798': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import get2supportedimageformats4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001298': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000463': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001274': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000080': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001918': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000350': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000529': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(CommandQs);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000813': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import set2image4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001443': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET PIPE - EXTRA \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001788': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001662': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001186': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001999': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000913': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002167': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000208': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Program source\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002271': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001523': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000293': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nt = get_local_size(0);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001473': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002055': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000431': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000562': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001363': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'setfetch2programsource4zpufetch2programsource4zpu#000000146': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000227': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000063': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000528': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(Devices);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingcreate2programwithsource4zpucreate2programwithsource4zpu#000002314': "{(Step 19A/70) using; keys2task-using-by-create2programwithsource4zpu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001806': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001746': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002188': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002227': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001302': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000088': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001786': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002295': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000172': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001280': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002214': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000261': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: baseTime = sTime;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001825': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000137': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001017': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000271': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "OCLError" usage = "error code checking"*/ \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000337': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000216': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002290': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001974': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001648': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000400': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000701': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002081': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000346': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002104': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001650': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000619': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002158': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000609': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000690': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #abstract4xi abstract = "tests zpu2sampler4xi.py"/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000158': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001870': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000612': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001273': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002138': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002321': "{(Step 22C1/70) initialized; platform-created-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:49 02/18/15 FLE Standard Time}", 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002150': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000954': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'z': Pickle2z4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002135': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001842': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002350': '{(Step 36B/70) initialized; count2reference-created-by-create2programwithsource4zpu: 1; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000314': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: vel[gti] = v;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001978': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000440': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: //\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001695': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002088': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000979': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000466': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000662': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000846': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000194': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001306': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001370': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001121': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000099': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001565': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000943': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'o': Pickle2o4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000002217': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\zpu2commandqueue4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000384': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create a compute context \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000309': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000934': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'f': Pickle2f4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001086': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000682': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002127': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # state = "California"\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002196': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000188': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002345': '{(Step 34A/70) try; size-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001688': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000796': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import create2image4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002211': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001134': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'release2sampler4zpu': 'NACK4XI',\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001546': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000675': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000713': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import signal\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000382': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000239': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void myNativeKernel(void *data) {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001271': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001544': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000256': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000510': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\\n",i,a_h[i]);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002285': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000379': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001198': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002051': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002244': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000219': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001193': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000153': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001172': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000964': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def set2trace4xi():\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001210': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000875': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001067': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000091': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001486': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = set2sampler4zpu(task4set2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001163': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001122': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'closedfetch2programsource4zpufetch2programsource4zpu#000002140': "{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000383': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001242': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001283': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000729': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001295': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000284': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_new,\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001701': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002232': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002342': '{(Step 32B/70) initialized; directory-created-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001073': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001910': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000445': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i nDevices; i++) {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000862': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2o4xi import Pickle2o4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000473': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000706': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000848': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2a4xi import Pickle2a4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000357': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\t \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002092': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: main()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001576': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'returningfetch2programsource4zpufetch2programsource4zpu#000002219': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001841': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001262': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000880': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2d4xi import Actor2d4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000752': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import finish2commandqueue4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001007': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Mark those with NACK4XI to be traced !\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002302': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001753': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000330': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int n = get_global_size(0);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001678': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000119': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000179': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000311': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: p += dt*v + 0.5f*dt*dt*a;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000649': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001719': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000349': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001964': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001034': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001305': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4samplerinfo2zpu.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000710': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import threading \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000335': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001261': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000621': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000996': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001742': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000355': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000721': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000910': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001888': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002308': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000489': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData NKData;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000888': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2l4xi import Actor2l4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002316': '{(Step 21A0/70) try; data2callback-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000416': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002203': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000499': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001371': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001092': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001646': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001441': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001880': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000479': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002254': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002317': "{(Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000626': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002335': "{(Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4zpu: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000202': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include stdio.h\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000455': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001439': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001182': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000095': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001645': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000198': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // -----------------------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000808': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import read2image4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000425': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001767': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000291': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int ti = get_local_id(0);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002110': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # to-be-done \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002020': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001135': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'trace2sampler4zpu': 'NACK4XI',\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002046': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001856': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002325': "{(Step 24B/70) initialized; device-created-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:49 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000563': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000859': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2l4xi import Pickle2l4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000409': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: size_t entries = 64000000; // number of entries in the array\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000369': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000035': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000554': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001289': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000186': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001942': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'savingfetch2programsource4zpufetch2programsource4zpu#000000197': '{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 3; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001205': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000567': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000247': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001969': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002132': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001725': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001971': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000134': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000873': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2z4xi import Pickle2z4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001251': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002293': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001046': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def deny2trace4xi():\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001454': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000328': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int gti = get_global_id(0);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001020': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001525': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = release2sampler4zpu(task4release2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001529': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000759': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001505': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001736': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000957': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001723': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001310': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001805': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001709': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000268': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000000007': '{(Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000000005': "{(Step 1E/70) initialized; args2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002065': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001111': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000753': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001109': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001663': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000545': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000557': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001702': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001781': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001054': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000476': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000180': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001536': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000012': "{(Step 4B/70) got; device2zpu-got-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000249': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000778': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001722': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001633': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002047': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002231': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000925': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'a': Pickle2a4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001649': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000070': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000506': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000514': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002281': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002252': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001396': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001758': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002192': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000867': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2t4xi import Pickle2t4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000750': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import create2commandqueue4zpu \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002235': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000963': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------------------- \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002090': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001168': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000084': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001453': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001827': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'openedfetch2programsource4zpufetch2programsource4zpu#000000196': "{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001930': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002346': "{(Step 34B/70) initialized; size-initialized-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000078': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002274': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002334': '{(Step 29A/70) try; bufferinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001699': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000629': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001150': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000566': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002147': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000681': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001448': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000395': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001782': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000023': '{(Step 11A/70) trying; count2zpu-trying-by-create2programwithsource4zpu: 0; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001939': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000370': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Get platform IDs\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001594': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000561': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001629': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4get2samplerinfo[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001160': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001365': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001869': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000388': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue));\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000822': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import create2sampler4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000741': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #dragonize4xi dragonization = "\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000980': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001188': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001885': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001591': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001603': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001394': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001748': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001130': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ZPU2Sampler4Xi': 'NACK4XI',\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001424': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000085': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000714': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import itertools\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001915': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000881': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2e4xi import Actor2e4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001685': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000338': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001490': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'passedfetch2programsource4zpufetch2programsource4zpu#000002270': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001068': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001256': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000138': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001967': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001419': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PROPERTIES'] = None \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001461': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001751': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000002174': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000912': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001389': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001096': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001550': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002226': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000092': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001275': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000948': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 't': Pickle2t4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000655': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000428': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel2, 1, sizeof(int), count);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000086': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002073': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002009': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001292': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001247': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set2trace4xi() # trace all classes and functions in the system\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000316': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000170': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000958': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001518': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000325': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos2\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000959': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001941': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001956': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001469': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001651': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000020': "{(Step 9B/70) got; bufferinfo2zpu-got-by-create2programwithsource4zpu: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001674': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000155': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001487': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000899': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2w4xi import Actor2w4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002251': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000181': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000477': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001882': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001366': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000519': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data from a_d, should be half of data from b_d\\n");\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001664': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000437': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000905': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002264': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000665': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000973': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000068': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002181': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000076': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002269': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000389': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i nDevices; i++) {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000182': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001377': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002367': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT2REFERENCE; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002239': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\zpu2device4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001438': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002261': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\zpu2image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001432': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002070': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def main():\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001760': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'passedfetch2programsource4zpufetch2programsource4zpu#000002204': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000199': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // zpu2dummy4xi5test.cpp\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000787': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import set2eventcallback4zpu \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002234': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002299': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001667': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001426': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001407': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002189': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000614': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001329': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000368': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_int err;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002117': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #note4xi note = "\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001504': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001235': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "zpu2sampler4xi5test" usage = "\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000497': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memLocs[0] = (NKData.inData);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001552': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001573': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (14) SAMPLER CALLBACK \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002339': '{(Step 31A2/70) try; count-try-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002358': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PIPE; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000226': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " B[tid] = 2 * A[tid]; \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001099': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000983': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33)\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001115': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001082': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK4XI = tested .i.e. NOT to be traced! \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000168': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002139': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000658': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002130': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # compliance = "The California Law"\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000962': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001912': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = xi2zpu.trace2sampler() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000902': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2z4xi import Actor2z4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002177': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002337': "{(Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002058': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Print Trace\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000966': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000886': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2j4xi import Actor2j4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001124': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001436': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # queue4xi.Queue4Xi object at 0x0000000003B050F0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000811': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import retain2image4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001733': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001238': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001641': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000391': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000898': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2v4xi import Actor2v4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001245': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000410': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: size_t local = 1;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000760': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Context module \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000883': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2g4xi import Actor2g4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001712': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002122': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Legal Notice \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002282': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002103': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ace-zpu2sampler4xi5test.xml\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000556': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000396': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001334': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002034': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001481': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET SAMPLER - FINALLY! \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001639': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000002229': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000344': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002206': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\zpu2buffer4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001348': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000802': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2readimage4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001729': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001411': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001036': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 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:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000413': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_h = (float *)malloc(entries*sizeof(float));\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000046': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000623': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001118': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001380': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002328': '{(Step 26A/70) try; queue-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001030': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED LETTER : ", key2pickledb)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001501': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000302': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001470': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001051': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000319': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __kernel void nbody_kern(\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001050': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000313': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pos_new[gti] = p;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000352': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002182': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000292': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int n = get_global_size(0);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000253': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void printKernelTimes(cl_event event,char *eventName) {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000245': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\\n",i,NKData-inData[i]);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000823': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import get2samplerinfo4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000920': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001406': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001562': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000775': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import set2zpu4xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000579': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000858': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2k4xi import Pickle2k4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001795': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000002142': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001716': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001402': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001509': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000061': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001636': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001817': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000882': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2f4xi import Actor2f4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001794': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001340': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'returningfetch2programsource4zpufetch2programsource4zpu#000000583': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001898': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000695': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000965': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001430': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002160': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001042': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "deny2trace4xi" usage = "\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000945': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'q': Pickle2q4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001171': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001543': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000054': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000263': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Failed to get times for %s\\n",eventName);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000422': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001192': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # REASON \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001294': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000150': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002052': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001401': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001506': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001489': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000449': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000209': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const char* KernelSource =\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001085': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001059': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'startedcreate2programwithsource4zpucreate2programwithsource4zpu#000000001': '{(Step 1A/70) started; create2programwithsource4zpu-started: function create2programwithsource4zpu at 0x02EA5C00; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001569': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000637': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000215': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple2(__global float *A, int nLoops) { \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002224': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001728': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001194': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002075': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33)\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001849': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001834': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001706': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001482': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000373': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002131': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001381': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002162': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000975': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000255': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_ulong sTime,eTime;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001621': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - GET METHOD \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002263': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000189': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000223': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001317': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000839': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Trace modules \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000660': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001037': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33)\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001000': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING OBJECT: ", object2pickle)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001041': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001195': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2reason = {\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001009': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if dictionary2pickle[key2dictionary] == 'NACK4XI':\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001734': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001152': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = key2tailor \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001272': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001622': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000442': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: //\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002007': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33)\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001462': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001373': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001616': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001889': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001659': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001780': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000491': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001512': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000048': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001187': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001291': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001301': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0 \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001680': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET METHOD \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000044': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002260': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001555': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001393': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000486': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002124': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #protect4xi protection = "copyright"\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000487': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #else\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001287': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001350': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001872': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001574': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000501': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001089': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle[key2dictionary] = 'ACK4XI' \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002036': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001586': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: TRACE FUNCTION TESTS \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000939': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'k': Pickle2k4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001559': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001170': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def print2trace4xi(t2xi):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002276': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000550': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001634': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'usingcreate2programwithsource4zpucreate2programwithsource4zpu#000000026': "{(Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4zpu: class 'zpu2program4xi.DirectoryWalker'; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000401': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create the compute kernel from the program\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001282': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001184': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000175': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000096': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000123': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001661': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000436': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001711': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001542': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000022': "{(Step 10B/70) got; eventinfo2zpu-got-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000992': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001765': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000698': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000853': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2f4xi import Pickle2f4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001508': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000842': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !!\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000940': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'l': Pickle2l4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000342': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000112': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001637': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001175': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001883': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000968': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001789': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002032': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002067': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # main function for zpu2sampler4xi5test\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001299': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000010': "{(Step 3B/70) got; context2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000976': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys())\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001499': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000228': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \\n";\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000518': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000782': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import ZPU2Event4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000537': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000952': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'x': Pickle2x4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002146': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000783': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import create2event4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000669': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002322': '{(Step 23A/70) try; context2zpu-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000512': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000911': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001921': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001829': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001597': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000238': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "myNativeKernel" usage = "native kernel"*/ \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000000006': "{(Step 1F/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {'FUNCTION2CALLBACK': function trace2program4zpu at 0x02EA5AE0, 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}}; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000394': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create the compute program from the source buffer\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000650': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000865': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2r4xi import Pickle2r4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001070': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000560': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000659': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001264': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000845': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001928': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000049': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000935': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'g': Pickle2g4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000318': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001491': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000897': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2u4xi import Actor2u4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000105': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001105': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001851': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001128': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #set4xi setting = "\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000977': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb:\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001677': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002243': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000372': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000589': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000320': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float dt1, float eps,\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002123': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000222': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000156': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000708': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import os\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000037': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000936': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'h': Pickle2h4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001138': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000949': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'u': Pickle2u4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000387': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create a command queue\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001743': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'usingfetch2programsource4zpufetch2programsource4zpu#000002152': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000464': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CPUQueue = CommandQs[i];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001874': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000582': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001018': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001495': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001581': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000803': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2writeimage4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001683': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001583': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001713': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000661': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000508': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data from b_d\\n");\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001014': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000067': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000761': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000310': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000608': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000317': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002166': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001952': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000549': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001526': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000207': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001392': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000206': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID2 1\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001564': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001570': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000804': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2mapimage4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000640': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000571': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001947': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001087': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000678': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000139': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000106': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001397': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000547': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002266': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002327': '{(Step 25B/70) initialized; code2error-created-by-create2programwithsource4zpu: 0; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001413': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002013': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000405': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // kernel data vars\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000810': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import release2image4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000654': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000711': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import _thread \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001434': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001979': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000819': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Sampler module \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000380': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id));\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001143': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001875': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000093': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001435': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001955': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000141': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002091': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if __name__ == '__main__':\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001207': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000351': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000555': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000262': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (err != CL_SUCCESS) {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000127': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001131': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'create2sampler4zpu': 'NACK4XI',\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001176': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002331': '{(Step 27B/70) initialized; pipe-created-by-create2programwithsource4zpu: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0); time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001926': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000712': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001226': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_ace4xi(t2xi, context2ace)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001884': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001657': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000050': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000111': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001513': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000121': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001126': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Settings to tailor trace\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001480': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001913': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001333': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001534': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001003': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000280': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "nbody_kern" usage = "kernel example 1"*/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001510': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001318': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000638': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000630': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001986': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000525': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k3Event[0],"Kernel 3");\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002072': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33)\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000160': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002066': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "main" usage = "\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001423': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) DEFINE ERROR CODE - REQUIRED \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001039': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000143': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001075': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002044': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001309': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001382': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000011': '{(Step 4A/70) trying; device2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000758': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001973': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000439': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001060': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001537': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001199': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002093': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/program4xi\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001455': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001732': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001557': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001463': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001328': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000799': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copyimage4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002144': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001855': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001239': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def zpu2sampler4xi5test():\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002151': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001531': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001497': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000365': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: static cl_platform_id Platform; // OpenCL platform\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000140': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001222': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001694': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002079': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33)\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001769': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) SET FILTERINGMODE - EXTRA \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002015': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000064': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000279': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001887': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001326': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001300': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001690': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001327': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001691': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000937': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'i': Pickle2i4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002179': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000793': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Image module \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002315': '{(Step 20A/70) initialized; zpu2program4xi-initialized-by-create2programwithsource4zpu to: {}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000468': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k3Event[1];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000634': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000616': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000274': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Error at line %d\\n",line);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001951': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000233': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *inData;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001516': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000295': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p = pos_old[gti];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000602': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000670': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000102': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000834': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import init2platforminfo4xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000484': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000766': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import retain2context4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002186': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001726': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002193': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000521': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\\n",i,a_h[i]);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000430': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000656': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000772': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000812': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import set2imagecallback4zpu \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000458': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001166': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "print-trace4xi" usage = "\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000115': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000676': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000100': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000503': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #endif\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001839': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001232': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000013': '{(Step 6A/70) trying; queue2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000421': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000414': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i =0; i entries; i++)\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001357': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000723': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001541': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002278': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001433': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000765': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import release2context4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001369': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (2) INITIALIZE DEVICE \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001362': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000178': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001628': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001483': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = {} \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001200': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002197': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001496': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001822': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002071': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000066': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002080': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001323': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002097': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Recorded History \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000345': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001159': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000942': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'n': Pickle2n4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000730': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000002168': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001457': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET REST \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000997': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001721': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # queue4xi.Queue4Xi object at 0x0000000003B02B00\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'savedfetch2programsource4zpufetch2programsource4zpu#000002141': '{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001604': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000606': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001047': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002200': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002201': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001961': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001465': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001676': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001149': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000613': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001106': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001579': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001500': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000666': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002019': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.reason())\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000515': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000136': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000595': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000719': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002096': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001618': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001953': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001225': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000624': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001539': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002277': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000087': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000693': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001374': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000704': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001352': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002045': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000824': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import release2sampler4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000408': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem b_d; // device memory used for output \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001154': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001216': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002218': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000402': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel = clCreateKernel(Program, "simple", err);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002171': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001114': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # tailors trace \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000861': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2n4xi import Pickle2n4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001337': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001162': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002064': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001005': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001375': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: device2zpu = init2zpu4xi() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000397': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000504': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000703': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000322': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_new,\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001412': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000904': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from time4xi import time4xi # time stamp to events\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002042': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001995': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001055': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000126': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000185': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000060': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: txt; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000844': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000459': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001587': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000667': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000234': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *outData;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000027': '{(Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//bin; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001598': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'setfetch2programsource4zpufetch2programsource4zpu#000000652': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000731': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Multiprocessing Imports \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001367': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000241': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000738': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001061': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001857': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000130': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002301': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000257': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001718': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001828': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000354': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000272': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void OCLError(cl_int err, int line) {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002004': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002223': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000909': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001592': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000892': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2p4xi import Actor2p4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001739': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000300': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000916': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #globalize4xi globalization = "\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001097': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001153': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001316': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001638': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000252': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001364': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001937': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000878': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on!\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001960': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002121': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002364': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: FUNCTION2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000073': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000142': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001437': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000645': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000542': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000259': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Set the base time and then subtract it to make the numbers easier to read\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002161': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000705': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Standard Imports \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001091': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000674': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000281': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __kernel void nbody_kern(\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001854': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002156': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001626': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001141': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"/\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001625': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000631': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001785': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001861': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xi2zpu = ZPU2Sampler4Xi() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001673': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001946': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000040': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001386': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000982': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING LETTER : ", key2pickledb)\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002061': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000471': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: eventLists[1] = k1Event[0];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001219': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002031': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002145': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001341': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001189': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_sense4xi(t2xi, context2sense)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000266': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("%s started at %ld, finished at %ld\\n",eventName,(sTime - baseTime),(eTime - baseTime));\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000059': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//z2scope4xi', '.txt'); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001090': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001084': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'ACK4XI' \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001671': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000286': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __local float4* pblock\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002143': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000720': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002230': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000922': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000879': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2c4xi import Actor2c4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001236': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # tests sampler4zpu\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001730': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000393': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002027': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001764': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000930': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001101': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001488': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002149': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000569': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002068': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002309': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000541': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002280': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001156': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000297': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002163': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001815': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000074': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000276': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001519': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'usingfetch2programsource4zpufetch2programsource4zpu#000002238': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001935': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000548': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002207': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001934': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000553': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001064': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001894': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: callback2zpu = xi2zpu.set2samplercallback() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002030': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - ACE SAMPLER \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000653': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002240': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000002169': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000917': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000790': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import wait2event4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000585': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002359': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: ACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001577': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000452': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001008': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001692': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000348': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000763': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import create2context4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001103': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000596': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002267': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001527': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001811': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000733': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #process4xi process = "\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001793': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001642': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000971': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001705': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000956': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000961': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions !\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001779': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001966': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000522': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002354': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: NACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001038': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002128': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # country = "United States of America"\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001605': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002002': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001269': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-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:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000984': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001137': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'set2sampler4zpu': 'NACK4XI' \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001384': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (3) CREATE CONTEXT \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001212': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001395': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000928': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000267': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001151': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'NACK4XI' \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000552': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000071': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001798': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001704': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001710': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001773': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000828': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import trace2sampler4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000036': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002304': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001206': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001108': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # _, a ... z \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000786': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import retain2event4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001227': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000443': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Find a queue that is associated with a CPU device (assumes 1 queue per device)\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000532': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clReleaseMemObject(b_d);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000017': '{(Step 8A/70) trying; commandqueueinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001303': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001804': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000077': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001346': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000057': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000841': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000509': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = (entries - 5); i entries; i++)\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002253': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001265': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = create2sampler4zpu() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000988': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000866': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2s4xi import Pickle2s4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001991': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001444': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000599': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000289': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000333': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p = pos_old[gti];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002025': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002074': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001821': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002202': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000677': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001944': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001467': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001398': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001962': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000341': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000306': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000744': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from queue4xi import Queue4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001987': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001908': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001446': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001902': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001191': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001660': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001409': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001345': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000814': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import trace2image4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001810': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000742': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pipe4xi import Pipe4Xi \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000692': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #contextualize4xi context = "sampler4xi.py"/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000728': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001296': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'savedfetch2programsource4zpufetch2programsource4zpu#000000536': '{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001878': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001943': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000296': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 v = vel[gti];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000243': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i NKData-size; i++) {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000868': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2u4xi import Pickle2u4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001877': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001290': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001761': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_ADDRESS_CLAMP_TO_EDGE\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001754': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET ADDRESSINGMODE - EXTRA \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002362': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PLATFORM; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000789': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import trace2event4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001246': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi = Print4Xi()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001174': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # SENSE \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000217': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000250': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001983': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000743': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platformids4xi import get2platformids4xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001293': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000927': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'b': Pickle2b4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001580': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # function trace2sampler4zpu at 0x00000000039676C8\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000203': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include CL/opencl.h\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001750': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001588': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000081': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000944': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'p': Pickle2p4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001770': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000797': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import get2imageinfo4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001428': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002287': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002349': '{(Step 36A/70) try; count2reference-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000830': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000972': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001314': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000611': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000914': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Global constants \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000277': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001196': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001024': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED DICTIONARY: ", dictionary2pickle)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000590': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001521': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001429': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) SET QUEUE - EXTRA \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001540': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000993': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000448': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_exec_capabilities DevExecCap;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001832': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'setcreate2programwithsource4zpucreate2programwithsource4zpu#000000024': '{(Step 11B/70) set; count2zpu-set-by-create2programwithsource4zpu to: 2; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000301': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002111': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001830': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001074': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002262': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001372': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000244': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (i (NKData-size -5))\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002310': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000817': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002305': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\zpu3image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000543': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000107': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001602': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000795': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import ZPU2Image4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000516': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000635': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'returningfetch2programsource4zpufetch2programsource4zpu#000002307': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002323': "{(Step 23B/70) initialized; context-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000974': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000999': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001045': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000030': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002249': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001665': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002016': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001276': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'returningfetch2programsource4zpufetch2programsource4zpu#000000598': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000604': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001517': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002095': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001427': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002083': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001010': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = True \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001993': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001475': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000033': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//index', '.html'); time: 08:41:48 02/18/15 FLE Standard Time}", 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002361': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: QUEUE; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000769': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001601': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000474': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #ifndef NATIVEK\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002148': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001169': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000475': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001982': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001388': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002082': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000187': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001460': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000647': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000890': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2n4xi import Actor2n4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000386': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000079': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000718': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001652': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000594': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002273': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000540': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000329': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int ti = get_local_id(0);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001088': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002035': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001422': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002343': '{(Step 33A/70) try; codetask-try-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001081': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000485': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000511': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001148': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001201': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002360': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000863': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2p4xi import Pickle2p4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001032': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001063': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'createdcreate2programwithsource4zpucreate2programwithsource4zpu#000002344': '{(Step 33B/70) created; code-created-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001896': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # function trace2sampler4zpu at 0x00000000039676C8 \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001252': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000339': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001258': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001312': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000376': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000131': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000230': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000390': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000577': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000531': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clReleaseMemObject(a_d);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001919': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33)\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001801': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000002272': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\zpu2kernel4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001549': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000000003': '{(Step 1C/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002318': '{(Step 22B0/70) try; function2callback-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001881': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000236': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: };\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001560': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000837': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000620': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002010': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001617': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001378': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000480': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000002153': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002048': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DONE - ALL TESTS \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000159': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000488': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Allocate and populate the data structure for the nativeKernel\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000622': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002355': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: BUFFER; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000915': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000305': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001530': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000453': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000691': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001860': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000177': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000745': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001062': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000224': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002023': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000433': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k2Event[1];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001533': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002352': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COMMANDQUEUE; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000610': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000125': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000403': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002173': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001033': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002176': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001905': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002102': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # reason-zpu2sampler4xi5test.xml\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001784': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000183': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001324': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001749': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000709': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import sys\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001204': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000498': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memLocs[1] = (NKData.outData);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002060': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print2trace4xi(t2xi) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002185': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002062': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000938': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'j': Pickle2j4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001949': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001985': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002259': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001988': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001796': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001567': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000580': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000568': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002340': '{(Step 31B/70) initialized; count-created-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000418': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000375': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_uint nDevices = -1;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002320': '{(Step 22C0/70) try; platform-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000358': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001593': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = trace2sampler4zpu() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000770': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001558': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001494': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000269': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000361': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int main() {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001940': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001083': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001703': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001477': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000755': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import retain2commandqueue4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002077': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: zpu2sampler4xi5test() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'closedfetch2programsource4zpufetch2programsource4zpu#000000535': "{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000034': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: html; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002216': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000002306': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001057': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001416': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001866': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-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:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000735': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001862': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = xi2zpu.create2sampler() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001231': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002338': '{(Step 31A1/70) try; task4program2zpu-try-by-create2programwithsource4zpu: {\'CODE\': {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}, \'COMMANDQUEUE\': {\'INFO2PRIVATE\': None, \'NACK2RETURN\': \' \', \'PROPERTIES\': None, \'DATA2CALLBACK\': {\'CLASS\': \'create2commandqueue4zpu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}\', \'METHOD\': \'create2commandqueue4zpu\'}, \'PIPE\': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), \'ACK2RETURN\': \' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-\', \'QUEUE\': queue4xi.Queue4Xi object at 0x02F59110, \'FUNCTION2CALLBACK\': function trace2commandqueue4zpu at 0x02D55660, \'COUNT2REFERENCE\': 0, \'CONTEXT\': {\'INFO2PRIVATE\': None, \'ACK2RETURN\': \' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-\', \'PLATFORM\': {\'ack2return\': \' 2C-2E-2F-2G-\', \'list2platforms\': [\'DragonXi\'], \'available2platform\': 1, \'max2entries\': 1, \'nack2return\': \' \'}, \'PROPERTIES\': None, \'SIZE2PRIVATE\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'CLASS\': \'create2context4zpu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}\', \'METHOD\': \'create2context4zpu\'}, \'NACK2RETURN\': \' \', \'FUNCTION2CALLBACK\': function trace2context4zpu at 0x02D6E540}, \'CODE2ERROR\': 0, \'DEVICE\': {\'PREFERRED2WIDTHSHORT4VECTOR\': 8, \'EXECUTE2FUNCTION4NATIVE\': \'ACK\', \'OUT-OF-ORDER2QUEUE\': \'NACK\', \'MAX2WORKITEM2\': 1024, \'NATIVE2WIDTHINT4VECTOR\': 4, \'MAX2WORKITEM0\': 1024, \'MAX2WORKITEM1\': 1024, \'TYPE2MEMORY4LOCAL\': \'Global\', \'MINIMUM2ALIGNMENT4DATATYPE\': 128, \'PREFERRED2WIDTHCHAR4VECTOR\': 16, \'RESOLUTION2TIMER4PROFILING\': 318, \'MAX2SIZE4KERNELARGUMENT\': 4096, \'SUPPORT2IMAGE\': \'NACK\', \'IEEE754-2008FUSED2MULTIPLY-ADD\': \'NACK\', \'SIZE2CACHE\': 65536, \'AVAILABLE2COMPILER\': \'ACK\', \'SIZE2LINE4CACHE\': 64, \'SIZE2MEMORY4LOCAL\': 32768, \'BITS2ADDRESS\': 64, \'SUPPORT2CORRECTION4ERROR\': 0, \'PREFERRED2WIDTHFLOAT4VECTOR\': 4, \'QUIET2NANS\': \'ACK\', \'MAX2SIZE4WORKGROUP\': 1024, \'ROUND2+VE3INFINITY\': \'ACK\', \'NATIVE2WIDTHDOUBLE4VECTOR\': 0, \'SIZE2BUFFER4CONSTANT\': 65536, \'AVAILABLE\': \'ACK\', \'ID2PLATFORM\': \'0000000001509568\', \'PREFERRED2WIDTHLONG4VECTOR\': 2, \'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL\': 1, \'ALIGNMENT2ADDRESS4BASE\': 1024, \'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\', \'ROUND2ZERO\': \'ACK\', \'MAX2DIMENSIONS4WORKITEMS\': 3, \'VERSION\': \'OpenCL 1.1 ATI-Stream-v2.3 (451)\', \'PROFILING2QUEUE\': \'ACK\', \'PREFERRED2WIDTHINT4VECTOR\': 4, \'ENDIANESS2DEVICE\': \'Little\', \'NATIVE2WIDTHLONG4VECTOR\': 2, \'MAX2FREQUENCY4CLOCK\': 3210, \'NATIVE2WIDTHFLOAT4VECTOR\': 4, \'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-\', \'TYPE\': \'CL_DEVICE_TYPE_ZPU\', \'NATIVE2WIDTHCHAR4VECTOR\': 16, \'NATIVE2WIDTHSHORT4VECTOR\': 8, \'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY\': \'ACK\', \'ID\': 4033, \'EXECUTE2KERNELS4OPENCL\': \'ACK\', \'PREFERRED2WIDTHDOUBLE4VECTOR\': 0, \'NACK2RETURN\': \' \', \'VERSION2DRIVER\': \'2.0\', \'PROFILE\': \'FULL_PROFILE\', \'MAX2UNITS4COMPUTE\': 4, \'MAX2ALLOCATION4MEMORY\': 1073741824, \'TYPE4CACHE\': \'Read/Write\', \'SIZE2MEMORY4GLOBAL\': 3221225472, \'MAX2NUMBER4CONSTANTARGS\': 8, \'ROUND2NEAREST4EVEN\': \'ACK\', \'MEMORY2UNIFIED4HOSTANDDEVICE\': 1, \'VENDOR\': \'AuthenticAMD\', \'NAME\': \'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD\'}}, \'BUFFER\': {\'POINTER2BUFFER\': mmap.mmap object at 0x02F6C7C8, \'ACK2RETURN\': \' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-\', \'NACK2RETURN\': \' \', \'DATA2CALLBACK\': {\'CLASS\': \'create2buffer4zpu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}\', \'METHOD\': \'create2buffer4zpu\'}, \'SIZE\': 278528, \'FLAGS\': 0, \'COUNT2REFERENCE\': 0, \'CONTEXT\': {\'INFO2PRIVATE\': None, \'ACK2RETURN\': \' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-\', \'PLATFORM\': {\'ack2return\': \' 2C-2E-2F-2G-\', \'list2platforms\': [\'DragonXi\'], \'available2platform\': 1, \'max2entries\': 1, \'nack2return\': \' \'}, \'PROPERTIES\': None, \'SIZE2PRIVATE\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'CLASS\': \'create2context4zpu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}\', \'METHOD\': \'create2context4zpu\'}, \'NACK2RETURN\': \' \', \'FUNCTION2CALLBACK\': function trace2context4zpu at 0x02D6E540}, \'DEVICE\': {\'PREFERRED2WIDTHSHORT4VECTOR\': 8, \'EXECUTE2FUNCTION4NATIVE\': \'ACK\', \'OUT-OF-ORDER2QUEUE\': \'NACK\', \'MAX2WORKITEM2\': 1024, \'NATIVE2WIDTHINT4VECTOR\': 4, \'MAX2WORKITEM0\': 1024, \'MAX2WORKITEM1\': 1024, \'TYPE2MEMORY4LOCAL\': \'Global\', \'MINIMUM2ALIGNMENT4DATATYPE\': 128, \'PREFERRED2WIDTHCHAR4VECTOR\': 16, \'RESOLUTION2TIMER4PROFILING\': 318, \'MAX2SIZE4KERNELARGUMENT\': 4096, \'SUPPORT2IMAGE\': \'NACK\', \'IEEE754-2008FUSED2MULTIPLY-ADD\': \'NACK\', \'SIZE2CACHE\': 65536, \'AVAILABLE2COMPILER\': \'ACK\', \'SIZE2LINE4CACHE\': 64, \'SIZE2MEMORY4LOCAL\': 32768, \'BITS2ADDRESS\': 64, \'SUPPORT2CORRECTION4ERROR\': 0, \'PREFERRED2WIDTHFLOAT4VECTOR\': 4, \'QUIET2NANS\': \'ACK\', \'MAX2SIZE4WORKGROUP\': 1024, \'ROUND2+VE3INFINITY\': \'ACK\', \'NATIVE2WIDTHDOUBLE4VECTOR\': 0, \'SIZE2BUFFER4CONSTANT\': 65536, \'AVAILABLE\': \'ACK\', \'ID2PLATFORM\': \'0000000001509568\', \'PREFERRED2WIDTHLONG4VECTOR\': 2, \'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL\': 1, \'ALIGNMENT2ADDRESS4BASE\': 1024, \'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\', \'ROUND2ZERO\': \'ACK\', \'MAX2DIMENSIONS4WORKITEMS\': 3, \'VERSION\': \'OpenCL 1.1 ATI-Stream-v2.3 (451)\', \'PROFILING2QUEUE\': \'ACK\', \'PREFERRED2WIDTHINT4VECTOR\': 4, \'ENDIANESS2DEVICE\': \'Little\', \'NATIVE2WIDTHLONG4VECTOR\': 2, \'MAX2FREQUENCY4CLOCK\': 3210, \'NATIVE2WIDTHFLOAT4VECTOR\': 4, \'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-\', \'TYPE\': \'CL_DEVICE_TYPE_ZPU\', \'NATIVE2WIDTHCHAR4VECTOR\': 16, \'NATIVE2WIDTHSHORT4VECTOR\': 8, \'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY\': \'ACK\', \'ID\': 4033, \'EXECUTE2KERNELS4OPENCL\': \'ACK\', \'PREFERRED2WIDTHDOUBLE4VECTOR\': 0, \'NACK2RETURN\': \' \', \'VERSION2DRIVER\': \'2.0\', \'PROFILE\': \'FULL_PROFILE\', \'MAX2UNITS4COMPUTE\': 4, \'MAX2ALLOCATION4MEMORY\': 1073741824, \'TYPE4CACHE\': \'Read/Write\', \'SIZE2MEMORY4GLOBAL\': 3221225472, \'MAX2NUMBER4CONSTANTARGS\': 8, \'ROUND2NEAREST4EVEN\': \'ACK\', \'MEMORY2UNIFIED4HOSTANDDEVICE\': 1, \'VENDOR\': \'AuthenticAMD\', \'NAME\': \'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD\'}, \'CODE2ERROR\': 0, \'FUNCTION2CALLBACK\': function trace2buffer4zpu at 0x02E47540}, \'SIZE\': {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': 337, \'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py\': 1453}, \'DIRECTORY\': \'e://scope4xi//041721//zap//lib//z//\', \'DATA2CALLBACK\': {\'CLASS\': \'create2programwithsource4zpu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}\', \'METHOD\': \'create2programwithsource4zpu\'}, \'PIPE\': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0), \'COUNT\': 2, \'QUEUE\': queue4xi.Queue4Xi object at 0x029327D0, \'PLATFORM\': {\'ack2return\': \' 2C-2E-2F-2G-\', \'list2platforms\': [\'DragonXi\'], \'available2platform\': 1, \'max2entries\': 1, \'nack2return\': \' \'}, \'EVENT\': {\'ACK2RETURN\': \' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-\', \'NACK2RETURN\': \' \', \'PIPE\': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), \'COMMANDQUEUE\': {\'INFO2PRIVATE\': None, \'NACK2RETURN\': \' \', \'PROPERTIES\': None, \'DATA2CALLBACK\': {\'CLASS\': \'create2commandqueue4zpu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}\', \'METHOD\': \'create2commandqueue4zpu\'}, \'PIPE\': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), \'ACK2RETURN\': \' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-\', \'QUEUE\': queue4xi.Queue4Xi object at 0x02F594D0, \'FUNCTION2CALLBACK\': function trace2commandqueue4zpu at 0x02D55660, \'COUNT2REFERENCE\': 0, \'CONTEXT\': {\'INFO2PRIVATE\': None, \'ACK2RETURN\': \' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-\', \'PLATFORM\': {\'ack2return\': \' 2C-2E-2F-2G-\', \'list2platforms\': [\'DragonXi\'], \'available2platform\': 1, \'max2entries\': 1, \'nack2return\': \' \'}, \'PROPERTIES\': None, \'SIZE2PRIVATE\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'CLASS\': \'create2context4zpu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}\', \'METHOD\': \'create2context4zpu\'}, \'NACK2RETURN\': \' \', \'FUNCTION2CALLBACK\': function trace2context4zpu at 0x02D6E540}, \'CODE2ERROR\': 0, \'DEVICE\': {\'PREFERRED2WIDTHSHORT4VECTOR\': 8, \'EXECUTE2FUNCTION4NATIVE\': \'ACK\', \'OUT-OF-ORDER2QUEUE\': \'NACK\', \'MAX2WORKITEM2\': 1024, \'NATIVE2WIDTHINT4VECTOR\': 4, \'MAX2WORKITEM0\': 1024, \'MAX2WORKITEM1\': 1024, \'TYPE2MEMORY4LOCAL\': \'Global\', \'MINIMUM2ALIGNMENT4DATATYPE\': 128, \'PREFERRED2WIDTHCHAR4VECTOR\': 16, \'RESOLUTION2TIMER4PROFILING\': 318, \'MAX2SIZE4KERNELARGUMENT\': 4096, \'SUPPORT2IMAGE\': \'NACK\', \'IEEE754-2008FUSED2MULTIPLY-ADD\': \'NACK\', \'SIZE2CACHE\': 65536, \'AVAILABLE2COMPILER\': \'ACK\', \'SIZE2LINE4CACHE\': 64, \'SIZE2MEMORY4LOCAL\': 32768, \'BITS2ADDRESS\': 64, \'SUPPORT2CORRECTION4ERROR\': 0, \'PREFERRED2WIDTHFLOAT4VECTOR\': 4, \'QUIET2NANS\': \'ACK\', \'MAX2SIZE4WORKGROUP\': 1024, \'ROUND2+VE3INFINITY\': \'ACK\', \'NATIVE2WIDTHDOUBLE4VECTOR\': 0, \'SIZE2BUFFER4CONSTANT\': 65536, \'AVAILABLE\': \'ACK\', \'ID2PLATFORM\': \'0000000001509568\', \'PREFERRED2WIDTHLONG4VECTOR\': 2, \'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL\': 1, \'ALIGNMENT2ADDRESS4BASE\': 1024, \'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\', \'ROUND2ZERO\': \'ACK\', \'MAX2DIMENSIONS4WORKITEMS\': 3, \'VERSION\': \'OpenCL 1.1 ATI-Stream-v2.3 (451)\', \'PROFILING2QUEUE\': \'ACK\', \'PREFERRED2WIDTHINT4VECTOR\': 4, \'ENDIANESS2DEVICE\': \'Little\', \'NATIVE2WIDTHLONG4VECTOR\': 2, \'MAX2FREQUENCY4CLOCK\': 3210, \'NATIVE2WIDTHFLOAT4VECTOR\': 4, \'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-\', \'TYPE\': \'CL_DEVICE_TYPE_ZPU\', \'NATIVE2WIDTHCHAR4VECTOR\': 16, \'NATIVE2WIDTHSHORT4VECTOR\': 8, \'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY\': \'ACK\', \'ID\': 4033, \'EXECUTE2KERNELS4OPENCL\': \'ACK\', \'PREFERRED2WIDTHDOUBLE4VECTOR\': 0, \'NACK2RETURN\': \' \', \'VERSION2DRIVER\': \'2.0\', \'PROFILE\': \'FULL_PROFILE\', \'MAX2UNITS4COMPUTE\': 4, \'MAX2ALLOCATION4MEMORY\': 1073741824, \'TYPE4CACHE\': \'Read/Write\', \'SIZE2MEMORY4GLOBAL\': 3221225472, \'MAX2NUMBER4CONSTANTARGS\': 8, \'ROUND2NEAREST4EVEN\': \'ACK\', \'MEMORY2UNIFIED4HOSTANDDEVICE\': 1, \'VENDOR\': \'AuthenticAMD\', \'NAME\': \'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD\'}}, \'QUEUE\': queue4xi.Queue4Xi object at 0x02F59430, \'DATA2CALLBACK\': {\'CLASS\': \'create2event4zpu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}\', \'METHOD\': \'create2event4zpu\'}, \'CONTEXT\': {\'INFO2PRIVATE\': None, \'ACK2RETURN\': \' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-\', \'PLATFORM\': {\'ack2return\': \' 2C-2E-2F-2G-\', \'list2platforms\': [\'DragonXi\'], \'available2platform\': 1, \'max2entries\': 1, \'nack2return\': \' \'}, \'PROPERTIES\': None, \'SIZE2PRIVATE\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'CLASS\': \'create2context4zpu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}\', \'METHOD\': \'create2context4zpu\'}, \'NACK2RETURN\': \' \', \'FUNCTION2CALLBACK\': function trace2context4zpu at 0x02D6E540}, \'DEVICE\': {\'PREFERRED2WIDTHSHORT4VECTOR\': 8, \'EXECUTE2FUNCTION4NATIVE\': \'ACK\', \'OUT-OF-ORDER2QUEUE\': \'NACK\', \'MAX2WORKITEM2\': 1024, \'NATIVE2WIDTHINT4VECTOR\': 4, \'MAX2WORKITEM0\': 1024, \'MAX2WORKITEM1\': 1024, \'TYPE2MEMORY4LOCAL\': \'Global\', \'MINIMUM2ALIGNMENT4DATATYPE\': 128, \'PREFERRED2WIDTHCHAR4VECTOR\': 16, \'RESOLUTION2TIMER4PROFILING\': 318, \'MAX2SIZE4KERNELARGUMENT\': 4096, \'SUPPORT2IMAGE\': \'NACK\', \'IEEE754-2008FUSED2MULTIPLY-ADD\': \'NACK\', \'SIZE2CACHE\': 65536, \'AVAILABLE2COMPILER\': \'ACK\', \'SIZE2LINE4CACHE\': 64, \'SIZE2MEMORY4LOCAL\': 32768, \'BITS2ADDRESS\': 64, \'SUPPORT2CORRECTION4ERROR\': 0, \'PREFERRED2WIDTHFLOAT4VECTOR\': 4, \'QUIET2NANS\': \'ACK\', \'MAX2SIZE4WORKGROUP\': 1024, \'ROUND2+VE3INFINITY\': \'ACK\', \'NATIVE2WIDTHDOUBLE4VECTOR\': 0, \'SIZE2BUFFER4CONSTANT\': 65536, \'AVAILABLE\': \'ACK\', \'ID2PLATFORM\': \'0000000001509568\', \'PREFERRED2WIDTHLONG4VECTOR\': 2, \'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL\': 1, \'ALIGNMENT2ADDRESS4BASE\': 1024, \'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\', \'ROUND2ZERO\': \'ACK\', \'MAX2DIMENSIONS4WORKITEMS\': 3, \'VERSION\': \'OpenCL 1.1 ATI-Stream-v2.3 (451)\', \'PROFILING2QUEUE\': \'ACK\', \'PREFERRED2WIDTHINT4VECTOR\': 4, \'ENDIANESS2DEVICE\': \'Little\', \'NATIVE2WIDTHLONG4VECTOR\': 2, \'MAX2FREQUENCY4CLOCK\': 3210, \'NATIVE2WIDTHFLOAT4VECTOR\': 4, \'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-\', \'TYPE\': \'CL_DEVICE_TYPE_ZPU\', \'NATIVE2WIDTHCHAR4VECTOR\': 16, \'NATIVE2WIDTHSHORT4VECTOR\': 8, \'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY\': \'ACK\', \'ID\': 4033, \'EXECUTE2KERNELS4OPENCL\': \'ACK\', \'PREFERRED2WIDTHDOUBLE4VECTOR\': 0, \'NACK2RETURN\': \' \', \'VERSION2DRIVER\': \'2.0\', \'PROFILE\': \'FULL_PROFILE\', \'MAX2UNITS4COMPUTE\': 4, \'MAX2ALLOCATION4MEMORY\': 1073741824, \'TYPE4CACHE\': \'Read/Write\', \'SIZE2MEMORY4GLOBAL\': 3221225472, \'MAX2NUMBER4CONSTANTARGS\': 8, \'ROUND2NEAREST4EVEN\': \'ACK\', \'MEMORY2UNIFIED4HOSTANDDEVICE\': 1, \'VENDOR\': \'AuthenticAMD\', \'NAME\': \'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD\'}, \'CODE2ERROR\': 0, \'FUNCTION2CALLBACK\': function trace2event4zpu at 0x02D87E88}, \'LANGUAGE\': \'Python\', \'FUNCTION2CALLBACK\': function trace2program4zpu at 0x02EA5AE0, \'CONTEXT\': {\'INFO2PRIVATE\': None, \'ACK2RETURN\': \' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-\', \'PLATFORM\': {\'ack2return\': \' 2C-2E-2F-2G-\', \'list2platforms\': [\'DragonXi\'], \'available2platform\': 1, \'max2entries\': 1, \'nack2return\': \' \'}, \'PROPERTIES\': None, \'SIZE2PRIVATE\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'CLASS\': \'create2context4zpu\', \'MESSAGE\': \'{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}\', \'METHOD\': \'create2context4zpu\'}, \'NACK2RETURN\': \' \', \'FUNCTION2CALLBACK\': function trace2context4zpu at 0x02D6E540}, \'COUNT2REFERENCE\': 1, \'CODE2ERROR\': 0, \'DEVICE\': {\'PREFERRED2WIDTHSHORT4VECTOR\': 8, \'EXECUTE2FUNCTION4NATIVE\': \'ACK\', \'OUT-OF-ORDER2QUEUE\': \'NACK\', \'MAX2WORKITEM2\': 1024, \'NATIVE2WIDTHINT4VECTOR\': 4, \'MAX2WORKITEM0\': 1024, \'MAX2WORKITEM1\': 1024, \'TYPE2MEMORY4LOCAL\': \'Global\', \'MINIMUM2ALIGNMENT4DATATYPE\': 128, \'PREFERRED2WIDTHCHAR4VECTOR\': 16, \'RESOLUTION2TIMER4PROFILING\': 318, \'MAX2SIZE4KERNELARGUMENT\': 4096, \'SUPPORT2IMAGE\': \'NACK\', \'IEEE754-2008FUSED2MULTIPLY-ADD\': \'NACK\', \'SIZE2CACHE\': 65536, \'AVAILABLE2COMPILER\': \'ACK\', \'SIZE2LINE4CACHE\': 64, \'SIZE2MEMORY4LOCAL\': 32768, \'BITS2ADDRESS\': 64, \'SUPPORT2CORRECTION4ERROR\': 0, \'PREFERRED2WIDTHFLOAT4VECTOR\': 4, \'QUIET2NANS\': \'ACK\', \'MAX2SIZE4WORKGROUP\': 1024, \'ROUND2+VE3INFINITY\': \'ACK\', \'NATIVE2WIDTHDOUBLE4VECTOR\': 0, \'SIZE2BUFFER4CONSTANT\': 65536, \'AVAILABLE\': \'ACK\', \'ID2PLATFORM\': \'0000000001509568\', \'PREFERRED2WIDTHLONG4VECTOR\': 2, \'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL\': 1, \'ALIGNMENT2ADDRESS4BASE\': 1024, \'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\', \'ROUND2ZERO\': \'ACK\', \'MAX2DIMENSIONS4WORKITEMS\': 3, \'VERSION\': \'OpenCL 1.1 ATI-Stream-v2.3 (451)\', \'PROFILING2QUEUE\': \'ACK\', \'PREFERRED2WIDTHINT4VECTOR\': 4, \'ENDIANESS2DEVICE\': \'Little\', \'NATIVE2WIDTHLONG4VECTOR\': 2, \'MAX2FREQUENCY4CLOCK\': 3210, \'NATIVE2WIDTHFLOAT4VECTOR\': 4, \'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-\', \'TYPE\': \'CL_DEVICE_TYPE_ZPU\', \'NATIVE2WIDTHCHAR4VECTOR\': 16, \'NATIVE2WIDTHSHORT4VECTOR\': 8, \'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY\': \'ACK\', \'ID\': 4033, \'EXECUTE2KERNELS4OPENCL\': \'ACK\', \'PREFERRED2WIDTHDOUBLE4VECTOR\': 0, \'NACK2RETURN\': \' \', \'VERSION2DRIVER\': \'2.0\', \'PROFILE\': \'FULL_PROFILE\', \'MAX2UNITS4COMPUTE\': 4, \'MAX2ALLOCATION4MEMORY\': 1073741824, \'TYPE4CACHE\': \'Read/Write\', \'SIZE2MEMORY4GLOBAL\': 3221225472, \'MAX2NUMBER4CONSTANTARGS\': 8, \'ROUND2NEAREST4EVEN\': \'ACK\', \'MEMORY2UNIFIED4HOSTANDDEVICE\': 1, \'VENDOR\': \'AuthenticAMD\', \'NAME\': \'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001019': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000331': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nt = get_local_size(0);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000903': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2_4xi import Actor2_4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000154': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001080': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001449': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002063': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000856': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2i4xi import Pickle2i4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000494': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memList[1] = b_d;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001479': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001158': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EOF KEYS\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002005': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001800': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001339': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000651': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001001': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000657': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001066': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys())\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001104': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001230': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # end of print2trace4xi \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001224': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001144': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PROCESS KB4Tailoring\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001308': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001178': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000108': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001727': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) PIPE \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000687': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #profile4xi profile = "11" /\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002330': '{(Step 27A/70) try; pipe-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000500': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Enqueue the kernel\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000967': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001387': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000985': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000371': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetPlatformIDs( 1, Platform, NULL);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000472': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (CPUQueue != NULL) {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001831': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001313': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000565': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002003': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001279': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001248': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: deny2trace4xi() # deny trace for all classes and functions in the system\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000326': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ) {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002245': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002247': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000885': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2i4xi import Actor2i4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001670': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001611': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CREATE WITH OBJECT \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000461': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // compare the device_type for this device\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000193': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000444': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_command_queue CPUQueue = NULL;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000921': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Settings\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001715': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001775': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001116': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001717': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001992': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000736': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001867': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001538': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001768': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001968': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000454': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get the type of this device\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000166': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001820': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000539': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000356': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'setcreate2programwithsource4zpucreate2programwithsource4zpu#000002312': '{(Step 15B/70) set; language2zpu-set-by-create2programwithsource4zpu to: Python; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002209': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001998': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001421': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001343': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000749': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000633': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001277': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001026': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000727': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001903': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - TRACE SAMPLERS \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001975': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001142': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001808': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000615': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001391': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'usingfetch2programsource4zpufetch2programsource4zpu#000000043': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001640': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000457': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'setcreate2programwithsource4zpucreate2programwithsource4zpu#000002311': "{(Step 14B/70) set; size2source4zpu-set-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000165': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000989': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys())\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000363': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_id *Devices; // OpenCL device\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002129': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # codes = "Codes established in California and applicable to corporations in California"\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000777': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001270': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000502': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001737': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000523': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k2Event[0],"Kernel 2");\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000671': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001837': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001906': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001643': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001356': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002348': '{(Step 35B/70) initialized; language-created-by-create2programwithsource4zpu: Python; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001493': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0 ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'returningfetch2programsource4zpufetch2programsource4zpu#000000628': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000877': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2a4xi import Actor2a4Xi # define functions and class for zapping \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001442': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002024': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000587': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000533': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001818': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002041': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000392': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002292': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000275': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: exit(1);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000167': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001813': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002279': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001871': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001776': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_FILTER_LINEAR\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001028': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001757': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'returningfetch2programsource4zpufetch2programsource4zpu#000002208': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001631': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000299': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002347': '{(Step 35A/70) try; language-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001687': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001278': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000109': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000756': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import set2commandqueue4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000764': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import get2context4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001696': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000784': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import get2eventinfo4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000990': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001963': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000045': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002178': '{(Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000104': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000246': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: NKData-outData[i] = 2*NKData-inData[i];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001763': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001177': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2sense = {\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000101': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001332': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001520': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001267': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000495': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001819': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002333': "{(Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002112': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #do4xi do = "\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000240': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData *NKData = (struct myNativeKernelData*)data;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001072': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002324': '{(Step 24A/70) try; device-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000038': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000221': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000171': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000304': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002180': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000220': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " } \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000792': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001627': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4get2samplerinfo.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001615': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000597': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000103': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000460': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000907': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_reason4xi import xml_trace_reason4xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001682': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001772': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001071': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002205': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001180': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001807': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000876': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001268': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001146': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2tailor = sorted(KB4Tailoring.keys())\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000406': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *a_h; // host memory used for original data and return data\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001376': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002199': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001284': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000991': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002039': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001994': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SENSE SAMPLER \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002038': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000052': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000481': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001568': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002329': '{(Step 26B/70) initialized; queue-created-by-create2programwithsource4zpu: queue4xi.Queue4Xi object at 0x029327D0; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000232': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001771': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000607': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000110': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001623': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001110': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001385': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000559': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000546': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001826': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001240': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001847': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001214': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2ace = {\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000258': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001094': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000762': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import ZPU2Context4Xi \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001445': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000229': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002033': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000551': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001759': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000399': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000201': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include stdlib.h\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001415': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000919': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002087': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002165': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001535': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002228': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\zpu2context4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002210': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001653': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000646': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000324': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __local float4* pblock,\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001476': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001809': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001157': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000601': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000429': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000364': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_context Context; // OpenCL context\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002172': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001132': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'get2samplerinfo4zpu': 'NACK4XI',\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'passedfetch2programsource4zpufetch2programsource4zpu#000000544': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000312': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: v += dt*a;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001133': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'retain2sampler4zpu': 'NACK4XI',\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000270': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000231': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // native kernel data structure\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002298': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001408': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000029': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000120': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000412': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001249': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: tailor2trace4xi() # tailor trace for this test \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001556': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002212': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001840': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001920': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000908': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_ace4xi import xml_trace_ace4xi \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001484': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001255': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001972': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002037': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.ace())\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002100': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # zpu2sampler4xi5test.txt\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002265': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002215': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000147': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002116': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001093': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001927': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000505': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002021': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002256': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000696': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001595': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000860': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2m4xi import Pickle2m4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000639': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001281': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001049': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001107': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000800': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001383': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001117': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def tailor2trace4xi():\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001613': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: samplerobject2zpu = ZPU2Sampler4Xi()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000462': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) ||\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002275': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000162': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000404': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001237': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000323': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* vel,\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001917': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002137': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002366': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: SIZE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000163': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000451': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001700': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000133': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000955': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: '_': Pickle2_4Xi} \n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000874': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2_4xi import Pickle2_4Xi \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'setcreate2programwithsource4zpucreate2programwithsource4zpu#000002313': '{(Step 17B/70) set; count2reference2zpu-set-by-create2programwithbinary4zpu to: 1; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001078': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STEP: PICKLED object: ", object2pickle)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001307': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000887': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2k4xi import Actor2k4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000381': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000600': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002078': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000407': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem a_d; // device memory used for input/output \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000929': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'c': Pickle2c4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000586': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001873': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001816': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000056': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002341': '{(Step 32A/70) try; directory-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001524': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001344': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001440': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002213': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000829': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001190': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001924': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000771': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Device module \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000470': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: eventLists[0] = k2Event[0];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000754': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import release2commandqueue4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002094': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001464': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000200': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // -----------------------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001836': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002085': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001173': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000807': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2buffertoimage4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000716': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import logging \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002133': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000094': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000689': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #program4xi program = "zpu2sampler4xi5test.py"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000894': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2r4xi import Actor2r4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001936': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001707': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002319': '{(Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4zpu: function trace2program4zpu at 0x02EA5AE0; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001823': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001802': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001578': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4setcallback2sampler = set2samplercallback4zpu() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001102': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002022': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000889': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2m4xi import Actor2m4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001755': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001738': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002006': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001167': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print XML trace for sampler4zpu test\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002255': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001120': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001647': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001223': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000821': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import ZPU2Sampler4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002118': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # parse4xi.py - to parse this module\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000748': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000251': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001471': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001607': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001208': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_reason4xi(t2xi, context2reason)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000747': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Command queue module \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001911': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001886': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001322': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001257': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001933': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000378': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (nDevices 3) { printf("Num Devices less than 3\\n"); exit(1); }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000827': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import set2sampler4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000641': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001658': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001799': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000805': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2image4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000592': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002105': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000264': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001714': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) QUEUE - EXTRA \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001113': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "tailor2trace4xi" usage = "\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000986': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING DICTIONARY: ", dictionary2pickle)\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002054': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000492': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem memList[2];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000347': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000855': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2h4xi import Pickle2h4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001472': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001503': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002011': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001803': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_LINEAR\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000002155': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001502': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000152': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000534': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000836': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import get2platforminfo4xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000672': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002098': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002008': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002084': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001390': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2zpu = create2context4zpu() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001466': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001203': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001447': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001129': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: KB4Tailoring = {\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000838': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000843': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001056': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000465': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000809': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import map2image4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001405': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001914': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001452': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000605': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000816': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import write2image4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002191': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002365': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CONTEXT; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001693': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000065': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000740': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000218': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " for (int i = 0; i nLoops; i++) { \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001123': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002120': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000854': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2g4xi import Pickle2g4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000791': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000116': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001478': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001997': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001589': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001330': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001229': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000815': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import wait2image4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000467': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001215': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002134': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #end4xi end = "\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002363': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: EVENT; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000062': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001954': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000998': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000273': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (err != CL_SUCCESS) {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002029': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001584': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000083': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001417': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE PROPERTIES - NONE \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000644': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001286': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001720': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001644': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002126': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # rights = "All rights reserved"\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000069': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000002125': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # owner = "Small Smart"\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002268': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000953': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'y': Pickle2y4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000332': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nb = n/nt;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001901': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000205': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID 0\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002057': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001600': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001686': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001139': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002297': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000184': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001981': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000210': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " __kernel void simple( __global float* A) { \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001023': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001752': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001410': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001035': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33)\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000082': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000618': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001989': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000053': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000507': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001590': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'usingfetch2programsource4zpufetch2programsource4zpu#000000129': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000385': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000118': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001893': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001876': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001575': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001127': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001922': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001668': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000417': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001404': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002014': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000578': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001458': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002289': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001859': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000668': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000776': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import get2zpu4xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000000004': '{(Step 1D/70) initialized; function2callback4zpu-created-by-create2programwithsource4zpu: function trace2program4zpu at 0x02EA5AE0; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001891': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002237': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001140': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000794': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001181': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001161': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002056': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: finally: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000707': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #standardize4xi standard = "\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002113': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # nothing\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000520': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = (entries - 5); i entries; i++)\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001599': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001977': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000434': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k1Event[1];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000047': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001145': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002017': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001431': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001468': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001679': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001079': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000526': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001980': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000694': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001916': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001065': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001260': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000016': '{(Step 7B/70) got; pipe2zpu-got-by-create2programwithsource4zpu: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0); time: 08:41:48 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002357': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DATA2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001259': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001514': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000145': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000896': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2t4xi import Actor2t4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000818': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000591': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000496': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void *memLocs[2];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001025': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001359': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001766': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001053': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001990': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001420': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000732': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001865': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001165': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002246': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002296': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002109': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001864': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001897': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001672': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000002194': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time}", 'passedfetch2programsource4zpufetch2programsource4zpu#000000128': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002101': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # sense-zpu2sampler4xi5test.xml\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000773': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import ZPU4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001843': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000785': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import release2event4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001253': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # START TESTING \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001708': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE ERROR CODE - REQUIRED \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000260': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (baseTime == -1)\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000932': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001244': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # INITIALIZE TRACE\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000097': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001228': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000648': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001620': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002184': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\version4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001221': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000132': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000869': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2v4xi import Pickle2v4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'decidedfetch2programsource4zpufetch2programsource4zpu#000000195': '{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time}', 'savingfetch2programsource4zpufetch2programsource4zpu#000000686': '{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 1; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001119': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002108': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000237': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000779': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001907': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000124': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001852': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000446': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_id qDevID;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000282': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float dt1, float eps,\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000212': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = A[tid] + 5; \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001619': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000751': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import flush2commandqueue4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000019': '{(Step 9A/70) trying; bufferinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000340': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000891': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2o4xi import Actor2o4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001741': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001263': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001812': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000427': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001320': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001474': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001234': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001606': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001335': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002233': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000870': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2w4xi import Pickle2w4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001791': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000144': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000872': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2y4xi import Pickle2y4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000135': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000724': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #dragonize4xi dragonization = "\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002089': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # __main__ \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000946': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'r': Pickle2r4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000148': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000702': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000321': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_old,\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000075': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000002303': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001900': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002284': '{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000327': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000173': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002258': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001745': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001058': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys())\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000767': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import set2context4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000726': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001112': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000343': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002288': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000725': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import version4xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000757': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import trace2commandqueue4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000683': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000941': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'm': Pickle2m4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000699': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #interface4xi interface = " \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001048': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000225': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " if (tid entries) \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002136': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # end of zpu2sampler4xi5test.py \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000039': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001724': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001425': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000801': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002236': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000002154': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000151': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000285': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* vel,\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000423': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001681': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000933': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'e': Pickle2e4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000851': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2d4xi import Pickle2d4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000737': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001021': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000833': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import PlatformInfo4Xi \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000211': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001233': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002115': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000042': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001790': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001778': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001932': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002164': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002198': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000377': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001656': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {}\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000367': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_command_queue *CommandQs; // OpenCL command queues\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000513': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("No CPU device found\\n");\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000009': '{(Step 3A/70) trying; context2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000806': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2imagetobuffer4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001052': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001015': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001358': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001547': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000871': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2x4xi import Pickle2x4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000734': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import _multiprocessing\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'decidedfetch2programsource4zpufetch2programsource4zpu#000000684': '{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002221': '{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002225': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002326': '{(Step 25A/70) try; code2error-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001243': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001213': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001654': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001183': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000673': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000149': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000947': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 's': Pickle2s4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001451': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001585': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000287': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: )\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000055': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000415': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_h[i] = (1 25) + 6;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000174': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001220': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001250': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001331': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001948': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001013': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001945': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000780': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Event module \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002059': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000588': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000847': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001077': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002220': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000113': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001147': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2tailor in keys2tailor:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001076': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001338': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000374': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get all devices\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000072': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001450': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000438': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000334': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 v = vel[gti];\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000441': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Now try enqueueing a native kernel\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001218': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000308': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001319': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000517': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'trycreate2programwithsource4zpucreate2programwithsource4zpu#000002332': '{(Step 28A/70) try; commandqueue-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001136': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'set2samplercallback4zpu': 'NACK4XI',\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001532': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001783': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000114': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000493': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memList[0] = a_d;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002001': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.sense())\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001635': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000717': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000298': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001610': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002076': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001164': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001735': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001890': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002300': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000832': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000617': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001957': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001697': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002368': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE2ERROR; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000214': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002369': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DEVICE; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000923': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #set4xi setting = "\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001012': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001923': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000366': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_program Program;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001970': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000831': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Platform module \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001179': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000632': '{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000278': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001342': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001347': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000788': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import set2event4zpu\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000603': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000164': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000424': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000456': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001498': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'openedfetch2programsource4zpufetch2programsource4zpu#000000685': "{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000931': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'd': Pickle2d4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000213': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \\n"\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000527': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // tidy up\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001596': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002159': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001853': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000190': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time}', 'setcreate2programwithsource4zpucreate2programwithsource4zpu#000000025': '{(Step 12B/70) set; dir2zpu-set-by-create2programwithsource4zpu to: e://scope4xi//041721//zap//lib//z//; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001197': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000041': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000524': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k1Event[0],"Kernel 1");\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000248': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000435': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000490': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: NKData.size = entries;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000884': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2h4xi import Actor2h4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001571': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000021': '{(Step 10A/70) trying; eventinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001211': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACE \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002049': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002012': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - REASON SAMPLER \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001608': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000398': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002242': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000161': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001609': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000058': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001850': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000664': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001095': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000981': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33)\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000558': '{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000359': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000924': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: PickleKB4Xi = {\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000636': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001931': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000679': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'setfetch2programsource4zpufetch2programsource4zpu#000000176': '{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000850': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2c4xi import Pickle2c4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001624': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002099': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #record4xi record = "\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001011': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001684': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001904': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000353': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000098': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001304': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001553': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001774': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001098': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001004': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("PICKLED object: ", object2pickle)\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001043': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # deny trace using pickle4xi functions !\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001254': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000781': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001792': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000002294': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\zpu2sampler4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000906': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_sense4xi import xml_trace_sense4xi # XML trace\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000826': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import set2samplercallback4zpu \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002222': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py\': {1: \'#profile4xi profile = "11" /\\n\', 2: \'# -------------------------------------------------------------------------------------------------\\n\', 3: \'#program4xi program = "zpu2sampler4xi5test.py"\\n\', 4: \'#abstract4xi abstract = "tests zpu2sampler4xi.py"/\\n\', 5: \'#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\\n\', 6: \'#contextualize4xi context = "sampler4xi.py"/\\n\', 7: \'#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\\n\', 8: \'# -------------------------------------------------------------------------------------------------\\n\', 9: \'\\n\', 10: \'# -------------------------------------------------------------------------------------------------\\n\', 11: \'# Public API\\n\', 12: \'# -------------------------------------------------------------------------------------------------\\n\', 13: \'#interface4xi interface = " \\n\', 14: "__all__ = [\'zpu2sampler4xi5test\'] \\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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\\n\', 64: \'from zpu2commandqueue4xi import create2commandqueue4zpu \\n\', 65: \'from zpu2commandqueue4xi import flush2commandqueue4zpu\\n\', 66: \'from zpu2commandqueue4xi import finish2commandqueue4zpu\\n\', 67: \'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\\n\', 68: \'from zpu2commandqueue4xi import release2commandqueue4zpu\\n\', 69: \'from zpu2commandqueue4xi import retain2commandqueue4zpu\\n\', 70: \'from zpu2commandqueue4xi import set2commandqueue4zpu\\n\', 71: \'from zpu2commandqueue4xi import trace2commandqueue4zpu\\n\', 72: \'\\n\', 73: \'# -------------------------------------------------------------------------------------------------\\n\', 74: \'# Context module \\n\', 75: \'# -------------------------------------------------------------------------------------------------\\n\', 76: \'from zpu2context4xi import ZPU2Context4Xi \\n\', 77: \'from zpu2context4xi import create2context4zpu\\n\', 78: \'from zpu2context4xi import get2context4zpu\\n\', 79: \'from zpu2context4xi import release2context4zpu\\n\', 80: \'from zpu2context4xi import retain2context4zpu\\n\', 81: \'from zpu2context4xi import set2context4zpu\\n\', 82: \'\\n\', 83: \'\\n\', 84: \'# -------------------------------------------------------------------------------------------------\\n\', 85: \'# Device module \\n\', 86: \'# -------------------------------------------------------------------------------------------------\\n\', 87: \'from zpu2device4xi import ZPU4Xi\\n\', 88: \'from zpu2device4xi import init2zpu4xi \\n\', 89: \'from zpu2device4xi import set2zpu4xi\\n\', 90: \'from zpu2device4xi import get2zpu4xi\\n\', 91: \'\\n\', 92: \'\\n\', 93: \'# -------------------------------------------------------------------------------------------------\\n\', 94: \'# Event module \\n\', 95: \'# -------------------------------------------------------------------------------------------------\\n\', 96: \'from zpu2event4xi import ZPU2Event4Xi\\n\', 97: \'from zpu2event4xi import create2event4zpu\\n\', 98: \'from zpu2event4xi import get2eventinfo4zpu\\n\', 99: \'from zpu2event4xi import release2event4zpu\\n\', 100: \'from zpu2event4xi import retain2event4zpu\\n\', 101: \'from zpu2event4xi import set2eventcallback4zpu \\n\', 102: \'from zpu2event4xi import set2event4zpu\\n\', 103: \'from zpu2event4xi import trace2event4zpu\\n\', 104: \'from zpu2event4xi import wait2event4zpu\\n\', 105: \'\\n\', 106: \'# -------------------------------------------------------------------------------------------------\\n\', 107: \'# Image module \\n\', 108: \'# -------------------------------------------------------------------------------------------------\\n\', 109: \'from zpu2image4xi import ZPU2Image4Xi\\n\', 110: \'from zpu2image4xi import create2image4zpu\\n\', 111: \'from zpu2image4xi import get2imageinfo4zpu\\n\', 112: \'from zpu2image4xi import get2supportedimageformats4zpu\\n\', 113: \'from zpu2image4xi import manoeuvre2copyimage4zpu\\n\', 114: \'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\\n\', 115: \'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\\n\', 116: \'from zpu2image4xi import manoeuvre2readimage4zpu\\n\', 117: \'from zpu2image4xi import manoeuvre2writeimage4zpu\\n\', 118: \'from zpu2image4xi import manoeuvre2mapimage4zpu\\n\', 119: \'from zpu2image4xi import copy2image4zpu\\n\', 120: \'from zpu2image4xi import copy2imagetobuffer4zpu\\n\', 121: \'from zpu2image4xi import copy2buffertoimage4zpu\\n\', 122: \'from zpu2image4xi import read2image4zpu\\n\', 123: \'from zpu2image4xi import map2image4zpu\\n\', 124: \'from zpu2image4xi import release2image4zpu\\n\', 125: \'from zpu2image4xi import retain2image4zpu\\n\', 126: \'from zpu2image4xi import set2imagecallback4zpu \\n\', 127: \'from zpu2image4xi import set2image4zpu\\n\', 128: \'from zpu2image4xi import trace2image4zpu\\n\', 129: \'from zpu2image4xi import wait2image4zpu\\n\', 130: \'from zpu2image4xi import write2image4zpu\\n\', 131: \'\\n\', 132: \'# -------------------------------------------------------------------------------------------------\\n\', 133: \'# Sampler module \\n\', 134: \'# -------------------------------------------------------------------------------------------------\\n\', 135: \'from zpu2sampler4xi import ZPU2Sampler4Xi\\n\', 136: \'from zpu2sampler4xi import create2sampler4zpu\\n\', 137: \'from zpu2sampler4xi import get2samplerinfo4zpu\\n\', 138: \'from zpu2sampler4xi import release2sampler4zpu\\n\', 139: \'from zpu2sampler4xi import retain2sampler4zpu\\n\', 140: \'from zpu2sampler4xi import set2samplercallback4zpu \\n\', 141: \'from zpu2sampler4xi import set2sampler4zpu\\n\', 142: \'from zpu2sampler4xi import trace2sampler4zpu\\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: " \'ZPU2Sampler4Xi\': \'NACK4XI\',\\n", 445: " \'create2sampler4zpu\': \'NACK4XI\',\\n", 446: " \'get2samplerinfo4zpu\': \'NACK4XI\',\\n", 447: " \'retain2sampler4zpu\': \'NACK4XI\',\\n", 448: " \'release2sampler4zpu\': \'NACK4XI\',\\n", 449: " \'trace2sampler4zpu\': \'NACK4XI\',\\n", 450: " \'set2samplercallback4zpu\': \'NACK4XI\',\\n", 451: " \'set2sampler4zpu\': \'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: \'#/function4xi \\n\', 478: \'\\n\', 479: \'# -------------------------------------------------------------------------------------------------\\n\', 480: \'#function4xi function = "print-trace4xi" usage = "\\n\', 481: \'# print XML trace for sampler4zpu test\\n\', 482: \'#" \\n\', 483: \'# ------------------------------------------------------------------------------------------------- \\n\', 484: \'def print2trace4xi(t2xi):\\n\', 485: \' \\n\', 486: \'\\n\', 487: \' # -------------------------------------------------------------------------------------------------\\n\', 488: \' # SENSE \\n\', 489: \' # ------------------------------------------------------------------------------------------------- \\n\', 490: \' \\n\', 491: \' context2sense = {\\n\', 492: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\sense-zpu2sampler4xi5test.xml\',\\n", 493: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 494: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 495: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\\\n\\\',\\n\', 496: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\\\n\\\',\\n\', 497: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="Dragon4Xi#000000"\\\\n\\\',\\n\', 498: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 499: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="sensed#000000"\\\\n\\\',\\n\', 500: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\\\n\\\',\\n\', 501: " \'debug4xi\': True}\\n", 502: \' \\n\', 503: \' xml_trace_sense4xi(t2xi, context2sense)\\n\', 504: \'\\n\', 505: \' # -------------------------------------------------------------------------------------------------\\n\', 506: \' # REASON \\n\', 507: \' # ------------------------------------------------------------------------------------------------- \\n\', 508: \' \\n\', 509: \' context2reason = {\\n\', 510: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\reason-zpu2sampler4xi5test.xml\',\\n", 511: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 512: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 513: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\\\n\\\',\\n\', 514: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations/rdfs:comment\\\\n\\\',\\n\', 515: \' \\\'operation_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 516: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="reasoned#000000"\\\\n\\\',\\n\', 517: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\\\n\\\',\\n\', 518: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="reason#000000"\\\\n\\\',\\n\', 519: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"reason/rdfs:comment\\\\n\\\',\\n\', 520: " \'debug4xi\': True}\\n", 521: \' \\n\', 522: \' xml_trace_reason4xi(t2xi, context2reason)\\n\', 523: \'\\n\', 524: \' # -------------------------------------------------------------------------------------------------\\n\', 525: \' # ACE \\n\', 526: \' # ------------------------------------------------------------------------------------------------- \\n\', 527: \' \\n\', 528: \' context2ace = {\\n\', 529: " \'file_path4xi\': \'E:\\\\\\\\scope4xi\\\\\\\\041721\\\\\\\\zap\\\\\\\\web\\\\\\\\xml\\\\\\\\ace-zpu2sampler4xi5test.xml\',\\n", 530: \' \\\'name_space4xi\\\': \\\' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\\\n\\\',\\n\', 531: \' \\\'xml_base4xi\\\': \\\' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\\\n\\\',\\n\', 532: \' \\\'ontology_about4xi\\\': \\\' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\\\n\\\',\\n\', 533: \' \\\'ontology_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 534: \' \\\'class0_id4xi\\\': \\\' owl:Class rdf:ID="ACE4Xi#0000000"\\\\n\\\',\\n\', 535: \' \\\'class0_comment4xi\\\': \\\' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\\\n\\\',\\n\', 536: \' \\\'object_property_rdf4xi\\\': \\\' owl:ObjectProperty rdf:ID="ace#0000000"\\\\n\\\',\\n\', 537: \' \\\'object_property_comment4xi\\\': \\\' rdfs:comment xml:lang="en"000000/rdfs:comment\\\\n\\\',\\n\', 538: " \'debug4xi\': True} \\n", 539: \' \\n\', 540: \' xml_trace_ace4xi(t2xi, context2ace)\\n\', 541: \'\\n\', 542: \'\\n\', 543: \' # -------------------------------------------------------------------------------------------------\\n\', 544: \' # end of print2trace4xi \\n\', 545: \' # ------------------------------------------------------------------------------------------------- \\n\', 546: \'#/function4xi\\n\', 547: \' \\n\', 548: \'# -------------------------------------------------------------------------------------------------\\n\', 549: \'#function4xi function = "zpu2sampler4xi5test" usage = "\\n\', 550: \'# tests sampler4zpu\\n\', 551: \'#" \\n\', 552: \'# ------------------------------------------------------------------------------------------------- \\n\', 553: \'def zpu2sampler4xi5test():\\n\', 554: \' global t2xi\\n\', 555: \' global trace_object_count \\n\', 556: \' \\n\', 557: \' # --------------------------------------------------------------------------------------------- \\n\', 558: \' # INITIALIZE TRACE\\n\', 559: \' # --------------------------------------------------------------------------------------------- \\n\', 560: \' t2xi = Print4Xi()\\n\', 561: \' set2trace4xi() # trace all classes and functions in the system\\n\', 562: \' deny2trace4xi() # deny trace for all classes and functions in the system\\n\', 563: \' tailor2trace4xi() # tailor trace for this test \\n\', 564: \' \\n\', 565: \' try:\\n\', 566: \' # ---------------------------------------------------------------------------------------------\\n\', 567: \' # START TESTING \\n\', 568: \' # --------------------------------------------------------------------------------------------- \\n\', 569: " print(\'=\' *33) \\n", 570: " print(\'(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED \', time4xi()) \\n", 571: " print(\'=\' *33) \\n", 572: \' # \\n\', 573: \' \\n\', 574: \' # ---------------------------------------------------------------------------------------------\\n\', 575: \' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \\n\', 576: \' # --------------------------------------------------------------------------------------------- \\n\', 577: " print(\'(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU \', time4xi()) \\n", 578: \' try:\\n\', 579: \' response4create2sampler = create2sampler4zpu() \\n\', 580: \' keys2response = response4create2sampler.keys()\\n\', 581: \' for key2response in sorted(keys2response):\\n\', 582: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 583: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 584: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 585: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, ...\\n", 586: \' # CODE2ERROR : 0\\n\', 587: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 588: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': ...\\n", 589: \' # COUNT2REFERENCE : 1\\n\', 590: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 591: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 592: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 593: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 594: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\\n\', 595: \' # NACK2RETURN : \\n\', 596: \' # NORMALIZATION : CL_TRUE\\n\', 597: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 598: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 599: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\\n\', 600: \' except:\\n\', 601: " print(\'(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** \', time4xi())\\n", 602: \' \\n\', 603: \' \\n\', 604: \' \\n\', 605: \' \\n\', 606: \' # ---------------------------------------------------------------------------------------------\\n\', 607: \' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \\n\', 608: \' # --------------------------------------------------------------------------------------------- \\n\', 609: " print(\'=\' *33) \\n", 610: " print(\'(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 611: " print(\'=\' *33) \\n", 612: \' task4getinfo2sampler = {}\\n\', 613: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 614: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 615: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0 \\n", 616: \' try:\\n\', 617: \' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \\n\', 618: " print(\'(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU \', time4xi()) \\n", 619: \' keys2response = response4samplerinfo2zpu.keys()\\n\', 620: \' for key2response in sorted(keys2response):\\n\', 621: " print(key2response, \' : \', response4samplerinfo2zpu[key2response])\\n", 622: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 623: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 624: \' # NORMALIZATION : CL_TRUE \\n\', 625: \' \\n\', 626: \' except:\\n\', 627: " print(\'(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU\', time4xi())\\n", 628: \' \\n\', 629: \'\\n\', 630: \' \\n\', 631: " print(\'=\' *33) \\n", 632: " print(\'(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU \', time4xi()) \\n", 633: " print(\'=\' *33) \\n", 634: \' try:\\n\', 635: \' response4getinfo2sampler = get2samplerinfo4zpu() \\n\', 636: \' keys2response = response4getinfo2sampler.keys()\\n\', 637: \' for key2response in sorted(keys2response):\\n\', 638: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 639: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 640: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 641: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 642: \' # CODE2ERROR : 0\\n\', 643: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 644: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \\n", 645: \' # COUNT2REFERENCE : 1\\n\', 646: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 647: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\', \\n", 648: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 649: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 650: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 651: \' # NACK2RETURN : \\n\', 652: \' # NORMALIZATION : CL_TRUE\\n\', 653: \' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\\n\', 654: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 655: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\\n\', 656: \' except:\\n\', 657: " print(\'(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***\', time4xi())\\n", 658: \' \\n\', 659: \' \\n\', 660: \' # ---------------------------------------------------------------------------------------------\\n\', 661: \' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \\n\', 662: \' # --------------------------------------------------------------------------------------------- \\n\', 663: " print(\'=\' *33) \\n", 664: " print(\'(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION \', time4xi()) \\n", 665: " print(\'=\' *33)\\n", 666: \' \\n\', 667: \' # ---------------------------------------------------------------------------------------------\\n\', 668: \' # (1) GET PLATFORM IDs TO SET CONTEXT\\n\', 669: \' # --------------------------------------------------------------------------------------------- \\n\', 670: " print(\'=\' *33) \\n", 671: " print(\'(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI\', time4xi())\\n", 672: " print(\'=\' *33) \\n", 673: \' platform2xi = {}\\n\', 674: \' try:\\n\', 675: \' platform2xi = get2platformids4xi()\\n\', 676: " print(\'(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI\', platform2xi) \\n", 677: " # {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1} \\n", 678: \' \\n\', 679: \' except:\\n\', 680: " print(\'(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI\', time4xi()) \\n", 681: \' \\n\', 682: \' # ---------------------------------------------------------------------------------------------\\n\', 683: \' # (2) INITIALIZE DEVICE \\n\', 684: \' # --------------------------------------------------------------------------------------------- \\n\', 685: " print(\'=\' *33) \\n", 686: " print(\'(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU \', time4xi()) \\n", 687: " print(\'=\' *33) \\n", 688: \' try:\\n\', 689: \' device2zpu = init2zpu4xi() \\n\', 690: " print(\'(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: \', device2zpu) \\n", 691: " # {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 692: \' \\n\', 693: \' except:\\n\', 694: " print(\'(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU\', time4xi()) \\n", 695: \' \\n\', 696: \' \\n\', 697: \' # ---------------------------------------------------------------------------------------------\\n\', 698: \' # (3) CREATE CONTEXT \\n\', 699: \' # --------------------------------------------------------------------------------------------- \\n\', 700: " print(\'=\' *33) \\n", 701: " print(\'(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU \', time4xi()) \\n", 702: " print(\'=\' *33) \\n", 703: \' try:\\n\', 704: \' context2zpu = create2context4zpu() \\n\', 705: " print(\'(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: \', context2zpu) \\n", 706: " # {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 707: \' \\n\', 708: \' except:\\n\', 709: " print(\'(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU\', time4xi()) \\n", 710: \' \\n\', 711: \' \\n\', 712: \' \\n\', 713: \' # ---------------------------------------------------------------------------------------------\\n\', 714: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 715: \' # --------------------------------------------------------------------------------------------- \\n\', 716: \' task4set2sampler = {}\\n\', 717: \' \\n\', 718: \' \\n\', 719: \' # ---------------------------------------------------------------------------------------------\\n\', 720: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 721: \' # --------------------------------------------------------------------------------------------- \\n\', 722: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 723: \' \\n\', 724: \' \\n\', 725: \' # ---------------------------------------------------------------------------------------------\\n\', 726: \' # (6) DEFINE DEVICE - EXTRA \\n\', 727: \' # --------------------------------------------------------------------------------------------- \\n\', 728: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 729: \' \\n\', 730: \' # ---------------------------------------------------------------------------------------------\\n\', 731: \' # (7) DEFINE PROPERTIES - NONE \\n\', 732: \' # --------------------------------------------------------------------------------------------- \\n\', 733: " task4set2sampler [\'PROPERTIES\'] = None \\n", 734: \' \\n\', 735: \' \\n\', 736: \' # ---------------------------------------------------------------------------------------------\\n\', 737: \' # (8) DEFINE ERROR CODE - REQUIRED \\n\', 738: \' # --------------------------------------------------------------------------------------------- \\n\', 739: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 740: \' \\n\', 741: \' \\n\', 742: \' # ---------------------------------------------------------------------------------------------\\n\', 743: \' # (9) SET QUEUE - EXTRA \\n\', 744: \' # --------------------------------------------------------------------------------------------- \\n\', 745: " task4set2sampler [\'QUEUE\'] = None\\n", 746: " print(\'(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 747: \' try: \\n\', 748: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 749: " print(\'(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'QUEUE\']) \\n", 750: \' # queue4xi.Queue4Xi object at 0x0000000003B050F0\\n\', 751: \' \\n\', 752: \' except:\\n\', 753: " print(\'(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 754: \' \\n\', 755: \' \\n\', 756: \' # ---------------------------------------------------------------------------------------------\\n\', 757: \' # (10) SET PIPE - EXTRA \\n\', 758: \' # --------------------------------------------------------------------------------------------- \\n\', 759: " task4set2sampler [\'PIPE\'] = None\\n", 760: " print(\'(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 761: \' try: \\n\', 762: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 763: " print(\'(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: \', task4set2sampler [\'PIPE\']) \\n", 764: \' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \\n\', 765: \' \\n\', 766: \' except:\\n\', 767: " print(\'(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU \', time4xi()) \\n", 768: \' \\n\', 769: \' \\n\', 770: \' # ---------------------------------------------------------------------------------------------\\n\', 771: \' # (11) SET REST \\n\', 772: \' # --------------------------------------------------------------------------------------------- \\n\', 773: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 774: " print(\'(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 775: \' try: \\n\', 776: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 777: " print(\'(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 778: \' # \\n\', 779: " task4set2sampler [\'NORMALIZATION\'] = \'CL_TRUE\' \\n", 780: " print(\'(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: \', task4set2sampler [\'NORMALIZATION\']) \\n", 781: \' # \\n\', 782: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_REPEAT\' \\n", 783: " print(\'(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 784: \' #\\n\', 785: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_NEAREST\' \\n", 786: " print(\'(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 787: \' # \\n\', 788: \' \\n\', 789: \' except:\\n\', 790: " print(\'(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi()) \\n", 791: \' \\n\', 792: \'\\n\', 793: \' \\n\', 794: \' # ---------------------------------------------------------------------------------------------\\n\', 795: \' # (11) SET SAMPLER - FINALLY! \\n\', 796: \' # --------------------------------------------------------------------------------------------- \\n\', 797: \' response4set2sampler = {} \\n\', 798: " print(\'(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU \', time4xi()) \\n", 799: \' try: \\n\', 800: \' response4set2sampler = set2sampler4zpu(task4set2sampler) \\n\', 801: \' \\n\', 802: \' keys2response = response4set2sampler.keys()\\n\', 803: \' for key2response in sorted(keys2response):\\n\', 804: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 805: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\\n\', 806: \' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\\n\', 807: " # BUFFER : {\'CODE2ERROR\': 0 ...\\n", 808: \' # CODE2ERROR : 0\\n\', 809: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, ...\\n", 810: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 811: \' # COUNT2REFERENCE : 1\\n\', 812: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 813: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\' ...\\n", 814: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': ...\\n", 815: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 816: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\\n\', 817: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\\n\', 818: \' # NORMALIZATION : CL_TRUE\\n\', 819: \' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\\n\', 820: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 821: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\\n\', 822: \' \\n\', 823: \' \\n\', 824: \' except:\\n\', 825: " print(\'(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** \', time4xi()) \\n", 826: \' \\n\', 827: \' \\n\', 828: \' # ---------------------------------------------------------------------------------------------\\n\', 829: \' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \\n\', 830: \' # --------------------------------------------------------------------------------------------- \\n\', 831: \' \\n\', 832: \' task4release2sampler = {} \\n\', 833: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 834: \' response4release2sampler = {}\\n\', 835: \' \\n\', 836: " print(\'(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 837: \' # \\n\', 838: \' try: \\n\', 839: \' response4release2sampler = release2sampler4zpu(task4release2sampler) \\n\', 840: \' \\n\', 841: \' keys2response = response4release2sampler.keys()\\n\', 842: \' for key2response in sorted(keys2response):\\n\', 843: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 844: \' # COUNT2REFERENCE : 0\\n\', 845: \' \\n\', 846: \' except:\\n\', 847: " print(\'(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 848: \' \\n\', 849: \' task4getinfo2sampler = {}\\n\', 850: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 851: \' \\n\', 852: " print(\'(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 853: \' # \\n\', 854: \' try: \\n\', 855: \' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \\n\', 856: \' keys2response = response4getinfo2sampler.keys()\\n\', 857: \' \\n\', 858: \' for key2response in sorted(keys2response):\\n\', 859: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 860: \' # COUNT2REFERENCE : 0\\n\', 861: \' \\n\', 862: \' except:\\n\', 863: " print(\'(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 864: \' \\n\', 865: \' \\n\', 866: \' # ---------------------------------------------------------------------------------------------\\n\', 867: \' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \\n\', 868: \' # --------------------------------------------------------------------------------------------- \\n\', 869: \' task4retain2sampler = {}\\n\', 870: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 871: \' response4retain2sampler = {}\\n\', 872: " print(\'(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 873: \' try: \\n\', 874: \' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \\n\', 875: \' \\n\', 876: \' keys2response = response4retain2sampler.keys()\\n\', 877: \' for key2response in sorted(keys2response):\\n\', 878: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 879: \' # COUNT2REFERENCE : 1\\n\', 880: \' \\n\', 881: \' except:\\n\', 882: " print(\'(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 883: \' \\n\', 884: \' \\n\', 885: \' \\n\', 886: \' # ---------------------------------------------------------------------------------------------\\n\', 887: \' # (14) SAMPLER CALLBACK \\n\', 888: \' # --------------------------------------------------------------------------------------------- \\n\', 889: \' \\n\', 890: " print(\'(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 891: \' try: \\n\', 892: \' response4setcallback2sampler = set2samplercallback4zpu() \\n\', 893: " print(\'(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: \', response4setcallback2sampler) \\n", 894: \' # function trace2sampler4zpu at 0x00000000039676C8\\n\', 895: \' except:\\n\', 896: " print(\'(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU \', time4xi()) \\n", 897: \' \\n\', 898: \' \\n\', 899: \' # ---------------------------------------------------------------------------------------------\\n\', 900: \' # PHASE I: TRACE FUNCTION TESTS \\n\', 901: \' # --------------------------------------------------------------------------------------------- \\n\', 902: " print(\'=\' *33) \\n", 903: " print(\'(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 904: " print(\'=\' *33) \\n", 905: \' trace2zpu = None\\n\', 906: \' try:\\n\', 907: \' trace2zpu = trace2sampler4zpu() \\n\', 908: " print(\'(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 909: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'} \\n", 910: \' \\n\', 911: \' except:\\n\', 912: " print(\'(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 913: \' \\n\', 914: \' \\n\', 915: \' \\n\', 916: \' # ---------------------------------------------------------------------------------------------\\n\', 917: \' # PHASE II: CLASS TESTS \\n\', 918: \' # ---------------------------------------------------------------------------------------------\\n\', 919: " print(\'=\' *33) \\n", 920: " print(\'(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT \', time4xi()) \\n", 921: " print(\'=\' *33) \\n", 922: \' # \\n\', 923: \' try:\\n\', 924: \' # ---------------------------------------------------------------------------------------------\\n\', 925: \' # CREATE WITH OBJECT \\n\', 926: \' # --------------------------------------------------------------------------------------------- \\n\', 927: \' samplerobject2zpu = ZPU2Sampler4Xi()\\n\', 928: " print(\'(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: \', samplerobject2zpu) \\n", 929: \' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\\n\', 930: \' \\n\', 931: \' except:\\n\', 932: " print(\'(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT\')\\n", 933: \' \\n\', 934: \' # ---------------------------------------------------------------------------------------------\\n\', 935: \' # PHASE II: CLASS TESTS - GET METHOD \\n\', 936: \' # --------------------------------------------------------------------------------------------- \\n\', 937: " print(\'(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO \', time4xi()) \\n", 938: \' try: \\n\', 939: \' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \\n\', 940: \' \\n\', 941: \' keys2response = response4get2samplerinfo.keys()\\n\', 942: \' for key2response in sorted(keys2response):\\n\', 943: " print(key2response, \' : \', response4get2samplerinfo[key2response])\\n", 944: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 945: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 946: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\' ...\\n", 947: \' # CODE2ERROR : 0\\n\', 948: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 949: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 950: \' # COUNT2REFERENCE : 1\\n\', 951: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 952: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 953: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \\n", 954: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 955: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 956: \' # NACK2RETURN : \\n\', 957: \' # NORMALIZATION : CL_TRUE\\n\', 958: \' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\\n\', 959: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 960: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\\n\', 961: \' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\\n\', 962: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 963: \' # COUNT2REFERENCE : 1\\n\', 964: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 965: \' # NORMALIZATION : CL_TRUE\\n\', 966: \' \\n\', 967: \' except:\\n\', 968: " print(\'(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO \', time4xi()) \\n", 969: \' \\n\', 970: \' task4getinfo2sampler = {}\\n\', 971: " task4getinfo2sampler [\'NORMALIZATION\'] = 0\\n", 972: " task4getinfo2sampler [\'ADDRESSINGMODE\'] = 0\\n", 973: " task4getinfo2sampler [\'FILTERINGMODE\'] = 0\\n", 974: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 975: \' response4getinfo2sampler = {}\\n\', 976: " print(\'(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 977: \' # \\n\', 978: \' try: \\n\', 979: \' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \\n\', 980: \' keys2response = response4getinfo2sampler.keys()\\n\', 981: \' \\n\', 982: \' for key2response in sorted(keys2response):\\n\', 983: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 984: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 985: \' # COUNT2REFERENCE : 1\\n\', 986: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 987: \' # NORMALIZATION : CL_TRUE \\n\', 988: \' \\n\', 989: \' except:\\n\', 990: " print(\'(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 991: \' \\n\', 992: \' \\n\', 993: \' # ---------------------------------------------------------------------------------------------\\n\', 994: \' # PHASE II: CLASS TESTS - SET METHOD \\n\', 995: \' # --------------------------------------------------------------------------------------------- \\n\', 996: " print(\'=\' *33) \\n", 997: " print(\'(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER \', time4xi())\\n", 998: " print(\'=\' *33) \\n", 999: \' # \\n\', 1000: \' \\n\', 1001: \' # ---------------------------------------------------------------------------------------------\\n\', 1002: \' # (4) INITIALIZE TASK DICTIONARY \\n\', 1003: \' # --------------------------------------------------------------------------------------------- \\n\', 1004: \' task4set2sampler = {}\\n\', 1005: \' \\n\', 1006: \' \\n\', 1007: \' # ---------------------------------------------------------------------------------------------\\n\', 1008: \' # (5) DEFINE CONTEXT - REQUIRED \\n\', 1009: \' # --------------------------------------------------------------------------------------------- \\n\', 1010: \' \\n\', 1011: " task4set2sampler [\'CONTEXT\'] = context2zpu \\n", 1012: \' \\n\', 1013: \' \\n\', 1014: \' # ---------------------------------------------------------------------------------------------\\n\', 1015: \' # (6) DEFINE DEVICE - EXTRA \\n\', 1016: \' # --------------------------------------------------------------------------------------------- \\n\', 1017: \' \\n\', 1018: " task4set2sampler [\'DEVICE\'] = device2zpu \\n", 1019: \' \\n\', 1020: \' \\n\', 1021: \' # ---------------------------------------------------------------------------------------------\\n\', 1022: \' # (7) DEFINE ERROR CODE - REQUIRED \\n\', 1023: \' # --------------------------------------------------------------------------------------------- \\n\', 1024: " task4set2sampler [\'CODE2ERROR\'] = 0 \\n", 1025: \' \\n\', 1026: \' \\n\', 1027: \' # ---------------------------------------------------------------------------------------------\\n\', 1028: \' # (8) QUEUE - EXTRA \\n\', 1029: \' # --------------------------------------------------------------------------------------------- \\n\', 1030: " print(\'(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI \', time4xi()) \\n", 1031: " task4set2sampler [\'QUEUE\'] = None\\n", 1032: \' try:\\n\', 1033: " task4set2sampler [\'QUEUE\'] = Queue4Xi() \\n", 1034: " print(\'(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : \', task4set2sampler [\'QUEUE\']) \\n", 1035: \' # queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1036: \' \\n\', 1037: \' except:\\n\', 1038: " print(\'(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI \', time4xi()) \\n", 1039: \' \\n\', 1040: \' # ---------------------------------------------------------------------------------------------\\n\', 1041: \' # (9) PIPE \\n\', 1042: \' # --------------------------------------------------------------------------------------------- \\n\', 1043: " print(\'(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI \', time4xi()) \\n", 1044: " task4set2sampler [\'PIPE\'] = None\\n", 1045: \' try:\\n\', 1046: " task4set2sampler [\'PIPE\'] = Pipe4Xi() \\n", 1047: " print(\'(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : \', task4set2sampler [\'PIPE\'])\\n", 1048: \' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1049: \' \\n\', 1050: \' except:\\n\', 1051: " print(\'(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI \', time4xi()) \\n", 1052: \' \\n\', 1053: \' # ---------------------------------------------------------------------------------------------\\n\', 1054: \' # (10) SET COMMAND QUEUE - EXTRA \\n\', 1055: \' # --------------------------------------------------------------------------------------------- \\n\', 1056: " task4set2sampler [\'COMMANDQUEUE\'] = None\\n", 1057: " print(\'(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU \', time4xi()) \\n", 1058: \' try: \\n\', 1059: " task4set2sampler [\'COMMANDQUEUE\'] = create2commandqueue4zpu() \\n", 1060: " print(\'(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: \', task4set2sampler [\'COMMANDQUEUE\']) \\n", 1061: " # {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1062: \' \\n\', 1063: \' \\n\', 1064: \' except:\\n\', 1065: " print(\'(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU \', time4xi())\\n", 1066: \' \\n\', 1067: \' # ---------------------------------------------------------------------------------------------\\n\', 1068: \' # (11) SET ADDRESSINGMODE - EXTRA \\n\', 1069: \' # --------------------------------------------------------------------------------------------- \\n\', 1070: \' \\n\', 1071: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1072: \' try: \\n\', 1073: " task4set2sampler [\'ADDRESSINGMODE\'] = \'CL_ADDRESS_CLAMP_TO_EDGE\' \\n", 1074: " print(\'(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'ADDRESSINGMODE\']) \\n", 1075: \' # CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1076: \' \\n\', 1077: \' \\n\', 1078: \' except:\\n\', 1079: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1080: \' \\n\', 1081: \' \\n\', 1082: \' # ---------------------------------------------------------------------------------------------\\n\', 1083: \' # (12) SET FILTERINGMODE - EXTRA \\n\', 1084: \' # --------------------------------------------------------------------------------------------- \\n\', 1085: \' \\n\', 1086: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU \', time4xi()) \\n", 1087: \' try: \\n\', 1088: " task4set2sampler [\'FILTERINGMODE\'] = \'CL_FILTER_LINEAR\' \\n", 1089: " print(\'(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: \', task4set2sampler [\'FILTERINGMODE\']) \\n", 1090: \' # CL_FILTER_LINEAR\\n\', 1091: \' \\n\', 1092: \' \\n\', 1093: \' except:\\n\', 1094: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU \', time4xi()) \\n", 1095: \' \\n\', 1096: \' \\n\', 1097: \' \\n\', 1098: \' # ---------------------------------------------------------------------------------------------\\n\', 1099: \' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \\n\', 1100: \' # --------------------------------------------------------------------------------------------- \\n\', 1101: " print(\'(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1102: \' try: \\n\', 1103: \' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \\n\', 1104: \' keys2response = response4set2sampler.keys()\\n\', 1105: \' for key2response in sorted(keys2response):\\n\', 1106: " print(key2response, \' : \', response4set2sampler[key2response])\\n", 1107: \' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\\n\', 1108: \' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\\n\', 1109: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1110: \' # CODE2ERROR : 0\\n\', 1111: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1112: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1113: \' # COUNT2REFERENCE : 1\\n\', 1114: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1115: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318\\n", 1116: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1117: \' # FILTERINGMODE : CL_FILTER_LINEAR\\n\', 1118: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1119: \' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\\n\', 1120: \' # NORMALIZATION : CL_TRUE\\n\', 1121: \' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\\n\', 1122: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1123: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\\n\', 1124: \' \\n\', 1125: \' except:\\n\', 1126: " print(\'(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: \', time4xi()) \\n", 1127: \' \\n\', 1128: \' \\n\', 1129: \' \\n\', 1130: \' # ---------------------------------------------------------------------------------------------\\n\', 1131: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER \\n\', 1132: \' # --------------------------------------------------------------------------------------------- \\n\', 1133: " print(\'=\' *33) \\n", 1134: " print(\'(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER\', time4xi()) \\n", 1135: " print(\'=\' *33) \\n", 1136: \' # \\n\', 1137: \' task4release2sampler = {}\\n\', 1138: " task4release2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1139: \' try:\\n\', 1140: \' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\\n\', 1141: \' keys2response = response4release2sampler.keys()\\n\', 1142: \' \\n\', 1143: \' for key2response in sorted(keys2response):\\n\', 1144: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1145: \' # COUNT2REFERENCE : 0\\n\', 1146: \' \\n\', 1147: \' except:\\n\', 1148: " print(\'(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER\', time4xi()) \\n", 1149: \' \\n\', 1150: \' \\n\', 1151: \' # ---------------------------------------------------------------------------------------------\\n\', 1152: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER \\n\', 1153: \' # --------------------------------------------------------------------------------------------- \\n\', 1154: " print(\'=\' *33) \\n", 1155: " print(\'(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER \', time4xi())\\n", 1156: " print(\'=\' *33) \\n", 1157: \' task4retain2sampler = {}\\n\', 1158: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1\\n", 1159: \' try:\\n\', 1160: \' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\\n\', 1161: \' keys2response = response4retain2sampler.keys()\\n\', 1162: \' for key2response in sorted(keys2response):\\n\', 1163: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1164: \' # COUNT2REFERENCE : 1\\n\', 1165: \' \\n\', 1166: \' except:\\n\', 1167: " print(\'(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER \', time4xi())\\n", 1168: \' \\n\', 1169: \' # ---------------------------------------------------------------------------------------------\\n\', 1170: \' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \\n\', 1171: \' # --------------------------------------------------------------------------------------------- \\n\', 1172: " print(\'(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1173: \' # \\n\', 1174: \' try:\\n\', 1175: \' xi2zpu = ZPU2Sampler4Xi() \\n\', 1176: \' response4create2sampler = xi2zpu.create2sampler() \\n\', 1177: \' keys2response = response4create2sampler.keys()\\n\', 1178: \' for key2response in sorted(keys2response):\\n\', 1179: " print(key2response, \' : \', response4create2sampler[key2response])\\n", 1180: \' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\\n\', 1181: \' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\\n\', 1182: " # BUFFER : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1183: \' # CODE2ERROR : 0\\n\', 1184: " # COMMANDQUEUE : {\'CODE2ERROR\': 0, \'COUNT2REFERENCE\': 0\\n", 1185: " # CONTEXT : {\'COUNT2REFERENCE\': 0, \'DATA2CALLBACK\': \\n", 1186: \' # COUNT2REFERENCE : 1\\n\', 1187: " # DATA2CALLBACK : {\'MESSAGE\': \'{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'create2sampler4zpu\', \'METHOD\': \'create2sampler4zpu\'}\\n", 1188: " # DEVICE : {\'RESOLUTION2TIMER4PROFILING\': 318, \'ID2PLATFORM\': \'0000000001509568\'\\n", 1189: " # EVENT : {\'CODE2ERROR\': 0, \'DATA2CALLBACK\': \\n", 1190: \' # FILTERINGMODE : CL_FILTER_NEAREST\\n\', 1191: \' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\\n\', 1192: \' # NACK2RETURN : \\n\', 1193: \' # NORMALIZATION : CL_TRUE\\n\', 1194: \' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\\n\', 1195: " # PLATFORM : {\'list2platforms\': [\'DragonXi\'], \'ack2return\': \' 2C-2E-2F-2G-\', \'nack2return\': \' \', \'available2platform\': 1, \'max2entries\': 1}\\n", 1196: \' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\\n\', 1197: \' \\n\', 1198: \' except:\\n\', 1199: " print(\'(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU \', time4xi()) \\n", 1200: \' \\n\', 1201: \' # ---------------------------------------------------------------------------------------------\\n\', 1202: \' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \\n\', 1203: \' # --------------------------------------------------------------------------------------------- \\n\', 1204: " print(\'(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: \', xi2zpu) \\n", 1205: \' # \\n\', 1206: \' try:\\n\', 1207: \' \\n\', 1208: \' callback2zpu = xi2zpu.set2samplercallback() \\n\', 1209: " print(\'(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: \', callback2zpu)\\n", 1210: \' # function trace2sampler4zpu at 0x00000000039676C8 \\n\', 1211: \' \\n\', 1212: \' except:\\n\', 1213: " print(\'(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***\', time4xi()) \\n", 1214: \' \\n\', 1215: \' \\n\', 1216: \' # ---------------------------------------------------------------------------------------------\\n\', 1217: \' # PHASE II: CLASS TESTS - TRACE SAMPLERS \\n\', 1218: \' # --------------------------------------------------------------------------------------------- \\n\', 1219: " print(\'=\' *33) \\n", 1220: " print(\'(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: \', time4xi()) \\n", 1221: " print(\'=\' *33) \\n", 1222: \' # \\n\', 1223: \' \\n\', 1224: \' trace2zpu = None\\n\', 1225: \' try:\\n\', 1226: \' trace2zpu = xi2zpu.trace2sampler() \\n\', 1227: \' \\n\', 1228: " print(\'=\' *33) \\n", 1229: " print(\'(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: \', trace2zpu) \\n", 1230: " # {\'MESSAGE\': \'{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}\', \'CLASS\': \'trace2sampler4zpu\', \'METHOD\': \'trace2sampler4zpu\'}\\n", 1231: \' \\n\', 1232: \' \\n\', 1233: " print(\'=\' *33)\\n", 1234: \' except:\\n\', 1235: " print(\'(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: \', trace2zpu) \\n", 1236: \' \\n\', 1237: \' \\n\', 1238: \' \\n\', 1239: \' # ---------------------------------------------------------------------------------------------\\n\', 1240: \' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \\n\', 1241: \' # --------------------------------------------------------------------------------------------- \\n\', 1242: \' task4release2sampler = {} \\n\', 1243: " task4release2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1244: \' response4release2sampler = {}\\n\', 1245: \' \\n\', 1246: " print(\'(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1247: \' # \\n\', 1248: \' try: \\n\', 1249: \' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \\n\', 1250: \' \\n\', 1251: \' keys2response = response4release2sampler.keys()\\n\', 1252: \' for key2response in sorted(keys2response):\\n\', 1253: " print(key2response, \' : \', response4release2sampler[key2response])\\n", 1254: \' # COUNT2REFERENCE : 0\\n\', 1255: \' except:\\n\', 1256: " print(\'(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1257: \' \\n\', 1258: \' task4getinfo2sampler = {}\\n\', 1259: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1260: \' response4getinfo2sampler = {}\\n\', 1261: " print(\'(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1262: \' # \\n\', 1263: \' try: \\n\', 1264: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1265: \' keys2response = response4getinfo2sampler.keys()\\n\', 1266: \' \\n\', 1267: \' for key2response in sorted(keys2response):\\n\', 1268: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1269: \' # COUNT2REFERENCE : 0\\n\', 1270: \' except:\\n\', 1271: " print(\'(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1272: \' \\n\', 1273: \' \\n\', 1274: \' # ---------------------------------------------------------------------------------------------\\n\', 1275: \' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \\n\', 1276: \' # --------------------------------------------------------------------------------------------- \\n\', 1277: \' task4retain2sampler = {}\\n\', 1278: " task4retain2sampler [\'COUNT2REFERENCE\'] = 1 \\n", 1279: \' response4retain2sampler = {}\\n\', 1280: " print(\'(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi()) \\n", 1281: \' try: \\n\', 1282: \' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \\n\', 1283: \' \\n\', 1284: \' keys2response = response4retain2sampler.keys()\\n\', 1285: \' for key2response in sorted(keys2response):\\n\', 1286: " print(key2response, \' : \', response4retain2sampler[key2response])\\n", 1287: \' # COUNT2REFERENCE : 1\\n\', 1288: \' except:\\n\', 1289: " print(\'(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE \', time4xi())\\n", 1290: \' \\n\', 1291: \' task4getinfo2sampler = {}\\n\', 1292: " task4getinfo2sampler [\'COUNT2REFERENCE\'] = 0\\n", 1293: \' response4getinfo2sampler = {}\\n\', 1294: " print(\'(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1295: \' # \\n\', 1296: \' try: \\n\', 1297: \' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \\n\', 1298: \' keys2response = response4getinfo2sampler.keys()\\n\', 1299: \' \\n\', 1300: \' for key2response in sorted(keys2response):\\n\', 1301: " print(key2response, \' : \', response4getinfo2sampler[key2response])\\n", 1302: \' # COUNT2REFERENCE : 1\\n\', 1303: \' \\n\', 1304: \' except:\\n\', 1305: " print(\'(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE \', time4xi()) \\n", 1306: \' \\n\', 1307: \' # ---------------------------------------------------------------------------------------------\\n\', 1308: \' # PHASE II: CLASS TESTS - SENSE SAMPLER \\n\', 1309: \' # --------------------------------------------------------------------------------------------- \\n\', 1310: " print(\'=\' *33) \\n", 1311: " print(\'(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING \', time4xi()) \\n", 1312: " print(\'=\' *33) \\n", 1313: \' \\n\', 1314: \' try:\\n\', 1315: \' print(xi2zpu.sense())\\n\', 1316: \' \\n\', 1317: " print(\'=\' *33) \\n", 1318: " print(\'(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED \', time4xi()) \\n", 1319: " # {\'classvariable2zpu-of-ZPU2Sampler4Xi\': 4, \'object\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\\n", 1320: \' \\n\', 1321: " print(\'=\' *33)\\n", 1322: \' except:\\n\', 1323: " print(\'(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE \', time4xi()) \\n", 1324: \' \\n\', 1325: \' # ---------------------------------------------------------------------------------------------\\n\', 1326: \' # PHASE II: CLASS TESTS - REASON SAMPLER \\n\', 1327: \' # --------------------------------------------------------------------------------------------- \\n\', 1328: " print(\'=\' *33) \\n", 1329: " print(\'(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING \', time4xi())\\n", 1330: " print(\'=\' *33) \\n", 1331: \' \\n\', 1332: \' try:\\n\', 1333: \' print(xi2zpu.reason())\\n\', 1334: \' \\n\', 1335: " print(\'=\' *33) \\n", 1336: " print(\'(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED \', time4xi())\\n", 1337: " # {\'object-reason-object4xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, \'time-reason-of-ZPU2Sampler4Xi\': \'04:32:25 11/07/11 Pacific Standard Time\'}\\n", 1338: \' \\n\', 1339: " print(\'=\' *33) \\n", 1340: \' except:\\n\', 1341: " print(\'(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON \', time4xi()) \\n", 1342: \' \\n\', 1343: \' # ---------------------------------------------------------------------------------------------\\n\', 1344: \' # PHASE II: CLASS TESTS - ACE SAMPLER \\n\', 1345: \' # --------------------------------------------------------------------------------------------- \\n\', 1346: " print(\'=\' *33) \\n", 1347: " print(\'(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING \', time4xi()) \\n", 1348: " print(\'=\' *33) \\n", 1349: \' \\n\', 1350: \' try:\\n\', 1351: \' print(xi2zpu.ace())\\n\', 1352: \' \\n\', 1353: " print(\'=\' *33) \\n", 1354: " print(\'(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED \', time4xi()) \\n", 1355: " # {\'cores-of-ZPU2Sampler4Xi\': 4, \'object8xi\': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \\n", 1356: \' \\n\', 1357: " print(\'=\' *33) \\n", 1358: \' except:\\n\', 1359: " print(\'(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE \', time4xi()) \\n", 1360: \' \\n\', 1361: \' # ---------------------------------------------------------------------------------------------\\n\', 1362: \' # DONE - ALL TESTS \\n\', 1363: \' # --------------------------------------------------------------------------------------------- \\n\', 1364: " print(\'=\' *33) \\n", 1365: " print(\'(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! \', time4xi())\\n", 1366: \' # \\n\', 1367: " print(\'=\' *33) \\n", 1368: \' except:\\n\', 1369: " print(\'(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** \', time4xi())\\n", 1370: \' finally: \\n\', 1371: \' # --------------------------------------------------------------------------------------------- \\n\', 1372: \' # Print Trace\\n\', 1373: \' # --------------------------------------------------------------------------------------------- \\n\', 1374: \' print2trace4xi(t2xi) \\n\', 1375: \' \\n\', 1376: \' \\n\', 1377: \'#/function4xi \\n\', 1378: \' \\n\', 1379: \'# -------------------------------------------------------------------------------------------------\\n\', 1380: \'#function4xi function = "main" usage = "\\n\', 1381: \'# main function for zpu2sampler4xi5test\\n\', 1382: \'#" \\n\', 1383: \'# ------------------------------------------------------------------------------------------------- \\n\', 1384: \'def main():\\n\', 1385: \' \\n\', 1386: " print(\'=\' *33)\\n", 1387: \' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \\n\', 1388: \' # \\n\', 1389: " print(\'=\' *33)\\n", 1390: \' \\n\', 1391: \' zpu2sampler4xi5test() \\n\', 1392: \' \\n\', 1393: " print(\'=\' *33)\\n", 1394: \' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \\n\', 1395: \' # \\n\', 1396: \' \\n\', 1397: " print(\'=\' *33) \\n", 1398: \' \\n\', 1399: \'#/function4xi\\n\', 1400: \' \\n\', 1401: \'\\n\', 1402: \'# -------------------------------------------------------------------------------------------------\\n\', 1403: \'# __main__ \\n\', 1404: \'# -------------------------------------------------------------------------------------------------\\n\', 1405: "if __name__ == \'__main__\':\\n", 1406: \' main()\\n\', 1407: \'#/program4xi\\n\', 1408: \' \\n\', 1409: \'\\n\', 1410: \'# -------------------------------------------------------------------------------------------------\\n\', 1411: \'# Recorded History \\n\', 1412: \'# ------------------------------------------------------------------------------------------------- \\n\', 1413: \'#record4xi record = "\\n\', 1414: \'# zpu2sampler4xi5test.txt\\n\', 1415: \'# sense-zpu2sampler4xi5test.xml\\n\', 1416: \'# reason-zpu2sampler4xi5test.xml\\n\', 1417: \'# ace-zpu2sampler4xi5test.xml\\n\', 1418: \'#" \\n\', 1419: \'#\\n\', 1420: \'\\n\', 1421: \'#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\\n\', 1422: \'\\n\', 1423: \'# -------------------------------------------------------------------------------------------------\\n\', 1424: \'# to-be-done \\n\', 1425: \'# ------------------------------------------------------------------------------------------------- \\n\', 1426: \'#do4xi do = "\\n\', 1427: \'# nothing\\n\', 1428: \'#"\\n\', 1429: \'#/\\n\', 1430: \'\\n\', 1431: \'#note4xi note = "\\n\', 1432: \'# parse4xi.py - to parse this module\\n\', 1433: \'# "/\\n\', 1434: \'\\n\', 1435: \'# -------------------------------------------------------------------------------------------------\\n\', 1436: \'# Legal Notice \\n\', 1437: \'# ------------------------------------------------------------------------------------------------- \\n\', 1438: \'#protect4xi protection = "copyright"\\n\', 1439: \'# owner = "Small Smart"\\n\', 1440: \'# rights = "All rights reserved"\\n\', 1441: \'# state = "California"\\n\', 1442: \'# country = "United States of America"\\n\', 1443: \'# codes = "Codes established in California and applicable to corporations in California"\\n\', 1444: \'# compliance = "The California Law"\\n\', 1445: \'# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\\n\', 1446: \'#/\\n\', 1447: \'\\n\', 1448: \'#end4xi end = "\\n\', 1449: \'# -------------------------------------------------------------------------------------------------\\n\', 1450: \'# end of zpu2sampler4xi5test.py \\n\', 1451: \'# ------------------------------------------------------------------------------------------------- \\n\', 1452: \'#"\\n\', 1453: \'#/ \\n\'}}; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001572': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001336': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001522': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001125': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001418': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000450': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get the device attached to this queue\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001632': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001321': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu() \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002043': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'returningfetch2programsource4zpufetch2programsource4zpu#000002241': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000715': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import weakref\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000978': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000570': '{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {\'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp\': {1: \'// -----------------------------------------------------------------------------------------------------------------\\n\', 2: \'// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000482': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 2, sizeof(int), entries);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000852': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2e4xi import Pickle2e4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000900': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2x4xi import Actor2x4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000970': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi)\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000864': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2q4xi import Pickle2q4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000926': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000015': '{(Step 7A/70) trying; pipe2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001351': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33)\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000307': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000008': "{(Step 2B/70) got; platform2xi-got-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001016': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pass \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001325': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-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:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001740': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET COMMAND QUEUE - EXTRA \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001315': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000849': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2b4xi import Pickle2b4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000564': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000950': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'v': Pickle2v4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001895': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001266': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys()\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001797': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'skippedfetch2programsource4zpufetch2programsource4zpu#000000090': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001909': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001777': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001848': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response):\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000901': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2y4xi import Actor2y4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001515': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001655': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000000642': '{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000576': '{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000018': "{(Step 8B/70) got; commandqueueinfo2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000768': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001241': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000000051': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000411': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int count = 100;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000960': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'passedfetch2programsource4zpufetch2programsource4zpu#000000031': '{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001929': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000700': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __all__ = ['zpu2sampler4xi5test'] \n; time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001360': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'analyzingfetch2programsource4zpufetch2programsource4zpu#000000117': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000840': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001551': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001545': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response])\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000336': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001069': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001858': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000001399': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001507': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000254': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: static cl_ulong baseTime = -1;\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'usingfetch2programsource4zpufetch2programsource4zpu#000000575': "{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000483': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningfetch2programsource4zpufetch2programsource4zpu#000002175': '{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002114': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'skippedfetch2programsource4zpufetch2programsource4zpu#000002195': "{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\\\z2skeleton4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time}", 'examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000028': '{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001845': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try:\n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001040': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001868': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000951': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'w': Pickle2w4Xi,\n; time: 08:41:48 02/18/15 FLE Standard Time}", 'analyzingfetch2programsource4zpufetch2programsource4zpu#000002170': '{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000002086': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001311': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001297': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000204': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000360': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "main" usage = "main"*/ \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000722': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Scope4Xi imports \n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001614': "{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n; time: 08:41:49 02/18/15 FLE Standard Time}", 'readfetch2programsource4zpufetch2programsource4zpu#000000290': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int gti = get_global_id(0);\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000820': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # -------------------------------------------------------------------------------------------------\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000001698': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: \n; time: 08:41:49 02/18/15 FLE Standard Time}', 'readfetch2programsource4zpufetch2programsource4zpu#000000918': '{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi\n; time: 08:41:48 02/18/15 FLE Standard Time}', 'returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002356': '{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: LANGUAGE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time}'} (STEP 2C/33) OF XML_TRACE_REASON4XI - SET LEN2KB TO : 2369 --------------------------------- (STEP 3A/33) OF XML_TRACE_REASON4XI - INPUT FROM PRINT4XI REASON-METHOD: --------------------------------- analyzingfetch2programsource4zpufetch2programsource4zpu#000000044 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000046 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000070 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000072 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000085 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000087 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000100 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000102 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000115 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000117 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000130 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000132 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000145 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000147 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000160 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000162 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000175 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000177 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000190 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000192 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000546 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000548 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000561 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000563 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000576 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000578 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000591 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000593 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000606 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000608 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000621 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000623 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000636 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000638 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000651 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000653 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000666 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000668 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000681 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000000683 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000002153 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000002155 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000002168 {(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} analyzingfetch2programsource4zpufetch2programsource4zpu#000002170 {(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000029 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000040 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000055 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000066 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000081 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000096 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000111 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000126 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000141 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000156 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000171 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000186 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000542 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000557 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000572 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000587 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000602 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000617 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000632 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000647 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000662 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000000677 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002149 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002164 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002180 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002191 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002202 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002213 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002224 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002235 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002246 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002257 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002268 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002279 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002290 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} callingcreate2programwithsource4zpucreate2programwithsource4zpu#000002301 {(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} closedfetch2programsource4zpufetch2programsource4zpu#000000535 {(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} closedfetch2programsource4zpufetch2programsource4zpu#000002140 {(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:41:49 02/18/15 FLE Standard Time} createdcreate2programwithsource4zpucreate2programwithsource4zpu#000002344 {(Step 33B/70) created; code-created-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} decidedfetch2programsource4zpufetch2programsource4zpu#000000195 {(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} decidedfetch2programsource4zpufetch2programsource4zpu#000000684 {(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000027 {(Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//bin; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000028 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000039 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000054 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000065 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000080 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000095 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000110 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000125 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000140 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000155 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000170 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000185 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000541 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000556 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000571 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000586 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000601 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000616 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000631 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000646 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000661 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000000676 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002148 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002163 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002178 {(Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002179 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002190 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002201 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002212 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002223 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002234 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002245 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002256 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002267 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002278 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002289 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} examiningcreate2programwithsource4zpucreate2programwithsource4zpu#000002300 {(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000008 {(Step 2B/70) got; platform2xi-got-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000010 {(Step 3B/70) got; context2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000012 {(Step 4B/70) got; device2zpu-got-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000014 {(Step 6B/70) got; queue2zpu-got-by-create2programwithsource4zpu: queue4xi.Queue4Xi object at 0x029327D0; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000016 {(Step 7B/70) got; pipe2zpu-got-by-create2programwithsource4zpu: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0); time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000018 {(Step 8B/70) got; commandqueueinfo2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000020 {(Step 9B/70) got; bufferinfo2zpu-got-by-create2programwithsource4zpu: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000022 {(Step 10B/70) got; eventinfo2zpu-got-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000038 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000053 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000064 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000079 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000094 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000109 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000124 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000139 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000154 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000169 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000184 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000540 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000555 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000570 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000585 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000600 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000615 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000630 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000645 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000660 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000000675 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002147 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002162 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002177 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002189 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002200 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002211 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002222 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002233 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002244 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002255 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002266 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002277 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002288 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002299 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} gotcreate2programwithsource4zpucreate2programwithsource4zpu#000002310 {(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000000003 {(Step 1C/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000000004 {(Step 1D/70) initialized; function2callback4zpu-created-by-create2programwithsource4zpu: function trace2program4zpu at 0x02EA5AE0; time: 08:41:48 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000000005 {(Step 1E/70) initialized; args2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:48 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000000006 {(Step 1F/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {'FUNCTION2CALLBACK': function trace2program4zpu at 0x02EA5AE0, 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}}; time: 08:41:48 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000000007 {(Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002315 {(Step 20A/70) initialized; zpu2program4xi-initialized-by-create2programwithsource4zpu to: {}; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002317 {(Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002319 {(Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4zpu: function trace2program4zpu at 0x02EA5AE0; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002321 {(Step 22C1/70) initialized; platform-created-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002323 {(Step 23B/70) initialized; context-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002325 {(Step 24B/70) initialized; device-created-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002327 {(Step 25B/70) initialized; code2error-created-by-create2programwithsource4zpu: 0; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002329 {(Step 26B/70) initialized; queue-created-by-create2programwithsource4zpu: queue4xi.Queue4Xi object at 0x029327D0; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002331 {(Step 27B/70) initialized; pipe-created-by-create2programwithsource4zpu: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0); time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002333 {(Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002335 {(Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4zpu: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002337 {(Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002340 {(Step 31B/70) initialized; count-created-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002342 {(Step 32B/70) initialized; directory-created-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002346 {(Step 34B/70) initialized; size-initialized-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002348 {(Step 35B/70) initialized; language-created-by-create2programwithsource4zpu: Python; time: 08:41:49 02/18/15 FLE Standard Time} initializedcreate2programwithsource4zpucreate2programwithsource4zpu#000002350 {(Step 36B/70) initialized; count2reference-created-by-create2programwithsource4zpu: 1; time: 08:41:49 02/18/15 FLE Standard Time} openedfetch2programsource4zpufetch2programsource4zpu#000000196 {(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} openedfetch2programsource4zpufetch2programsource4zpu#000000685 {(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} passedcreate2programwithsource4zpucreate2programwithsource4zpu#000000002 {(Step 1B/70) passed; task4program2zpu-to-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000031 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000042 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000057 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000068 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000083 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000098 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000113 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000128 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000143 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000158 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000173 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000188 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000544 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000559 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000574 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000589 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000604 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000619 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000634 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000649 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000664 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000000679 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002151 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002166 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002182 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002193 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002204 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002215 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002226 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002237 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002248 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002259 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002270 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002281 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002292 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passedfetch2programsource4zpufetch2programsource4zpu#000002303 {(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000030 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000041 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000056 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000067 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000082 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000097 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000112 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000127 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000142 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000157 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000172 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000187 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000543 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000558 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000573 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000588 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000603 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000618 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000633 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000648 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000663 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000000678 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002150 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002165 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002181 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002192 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002203 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002214 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002225 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002236 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002247 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002258 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002269 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002280 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002291 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} passingcreate2programwithsource4zpucreate2programwithsource4zpu#000002302 {(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000037 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000052 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000063 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000078 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000093 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000108 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000123 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000138 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000153 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000168 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000183 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000539 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000554 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000569 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000584 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000599 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000614 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000629 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000644 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000659 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000000674 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002146 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002161 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002176 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002188 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002199 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002210 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002221 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002232 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002243 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002254 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002265 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002276 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002287 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002298 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} performedcreate2programwithsource4zpucreate2programwithsource4zpu#000002309 {(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000198 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000199 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // zpu2dummy4xi5test.cpp ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000200 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000201 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include stdlib.h ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000202 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include stdio.h ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000203 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include CL/opencl.h ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000204 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000205 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID 0 ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000206 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID2 1 ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000207 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000208 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Program source ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000209 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const char* KernelSource = ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000210 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " __kernel void simple( __global float* A) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000211 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000212 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = A[tid] + 5; \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000213 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000214 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000215 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple2(__global float *A, int nLoops) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000216 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000217 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000218 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " for (int i = 0; i nLoops; i++) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000219 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000220 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " } \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000221 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000222 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000223 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000224 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000225 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " if (tid entries) \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000226 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " B[tid] = 2 * A[tid]; \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000227 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000228 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n"; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000229 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000230 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000231 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // native kernel data structure ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000232 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000233 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *inData; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000234 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *outData; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000235 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int size; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000236 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000237 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000238 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "myNativeKernel" usage = "native kernel"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000239 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void myNativeKernel(void *data) { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000240 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData *NKData = (struct myNativeKernelData*)data; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000241 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000242 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data passed to native kernel\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000243 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i NKData-size; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000244 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (i (NKData-size -5)) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000245 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,NKData-inData[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000246 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: NKData-outData[i] = 2*NKData-inData[i]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000247 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000248 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000249 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000250 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000251 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000252 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000253 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void printKernelTimes(cl_event event,char *eventName) { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000254 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: static cl_ulong baseTime = -1; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000255 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_ulong sTime,eTime; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000256 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000257 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000258 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000259 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Set the base time and then subtract it to make the numbers easier to read ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000260 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (baseTime == -1) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000261 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: baseTime = sTime; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000262 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (err != CL_SUCCESS) { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000263 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Failed to get times for %s\n",eventName); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000264 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000265 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000266 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("%s started at %ld, finished at %ld\n",eventName,(sTime - baseTime),(eTime - baseTime)); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000267 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000268 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000269 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000270 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000271 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "OCLError" usage = "error code checking"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000272 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void OCLError(cl_int err, int line) { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000273 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (err != CL_SUCCESS) { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000274 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Error at line %d\n",line); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000275 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: exit(1); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000276 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000277 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000278 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000279 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000280 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "nbody_kern" usage = "kernel example 1"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000281 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __kernel void nbody_kern( ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000282 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float dt1, float eps, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000283 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_old, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000284 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_new, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000285 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* vel, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000286 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __local float4* pblock ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000287 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000288 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000289 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000290 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int gti = get_global_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000291 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int ti = get_local_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000292 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int n = get_global_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000293 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nt = get_local_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000294 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nb = n/nt; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000295 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p = pos_old[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000296 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 v = vel[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000297 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000298 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000299 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000300 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000301 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000302 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000303 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000304 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000305 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000306 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000307 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000308 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000309 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000310 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000311 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: p += dt*v + 0.5f*dt*dt*a; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000312 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: v += dt*a; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000313 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pos_new[gti] = p; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000314 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: vel[gti] = v; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000315 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000316 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000317 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000318 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000319 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __kernel void nbody_kern( ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000320 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float dt1, float eps, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000321 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_old, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000322 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_new, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000323 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* vel, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000324 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __local float4* pblock, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000325 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos2 ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000326 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ) { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000327 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000328 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int gti = get_global_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000329 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int ti = get_local_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000330 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int n = get_global_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000331 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nt = get_local_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000332 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nb = n/nt; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000333 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p = pos_old[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000334 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 v = vel[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000335 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000336 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000337 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000338 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000339 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000340 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000341 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000342 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000343 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000344 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000345 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000346 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000347 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000348 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000349 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000350 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000351 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000352 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000353 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000354 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000355 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000356 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000357 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000358 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000359 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000360 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "main" usage = "main"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000361 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int main() { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000362 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // OpenCL Platform, Device etc vars ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000363 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_id *Devices; // OpenCL device ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000364 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_context Context; // OpenCL context ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000365 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: static cl_platform_id Platform; // OpenCL platform ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000366 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_program Program; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000367 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_command_queue *CommandQs; // OpenCL command queues ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000368 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_int err; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000369 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000370 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Get platform IDs ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000371 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetPlatformIDs( 1, Platform, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000372 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000373 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000374 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get all devices ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000375 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_uint nDevices = -1; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000376 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000377 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000378 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (nDevices 3) { printf("Num Devices less than 3\n"); exit(1); } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000379 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000380 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id)); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000381 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000382 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000383 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000384 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create a compute context ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000385 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000386 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000387 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create a command queue ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000388 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue)); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000389 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i nDevices; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000390 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000391 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000392 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000393 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000394 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create the compute program from the source buffer ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000395 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000396 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000397 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000398 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000399 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000400 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000401 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create the compute kernel from the program ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000402 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel = clCreateKernel(Program, "simple", err); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000403 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000404 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000405 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // kernel data vars ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000406 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *a_h; // host memory used for original data and return data ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000407 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem a_d; // device memory used for input/output ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000408 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem b_d; // device memory used for output ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000409 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: size_t entries = 64000000; // number of entries in the array ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000410 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: size_t local = 1; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000411 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int count = 100; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000412 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000413 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_h = (float *)malloc(entries*sizeof(float)); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000414 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i =0; i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000415 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_h[i] = (1 25) + 6; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000416 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000417 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000418 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000419 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000420 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000421 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000422 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000423 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000424 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000425 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000426 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000427 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000428 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel2, 1, sizeof(int), count); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000429 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000430 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000431 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000432 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000433 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k2Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000434 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k1Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000435 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000436 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000437 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000438 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000439 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000440 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000441 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Now try enqueueing a native kernel ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000442 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000443 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Find a queue that is associated with a CPU device (assumes 1 queue per device) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000444 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_command_queue CPUQueue = NULL; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000445 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i nDevices; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000446 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_id qDevID; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000447 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_type DevType; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000448 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_exec_capabilities DevExecCap; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000449 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000450 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get the device attached to this queue ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000451 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000452 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000453 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000454 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get the type of this device ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000455 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000456 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000457 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000458 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000459 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000460 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000461 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // compare the device_type for this device ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000462 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) || ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000463 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000464 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CPUQueue = CommandQs[i]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000465 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000466 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000467 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000468 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k3Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000469 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event eventLists[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000470 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: eventLists[0] = k2Event[0]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000471 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: eventLists[1] = k1Event[0]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000472 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (CPUQueue != NULL) { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000473 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000474 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #ifndef NATIVEK ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000475 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000476 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000477 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000478 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000479 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000480 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000481 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000482 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 2, sizeof(int), entries); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000483 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000484 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000485 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000486 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000487 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #else ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000488 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Allocate and populate the data structure for the nativeKernel ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000489 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData NKData; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000490 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: NKData.size = entries; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000491 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000492 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem memList[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000493 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memList[0] = a_d; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000494 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memList[1] = b_d; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000495 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000496 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void *memLocs[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000497 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memLocs[0] = (NKData.inData); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000498 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memLocs[1] = (NKData.outData); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000499 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000500 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Enqueue the kernel ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000501 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000502 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000503 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #endif ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000504 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000505 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000506 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000507 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000508 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data from b_d\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000509 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = (entries - 5); i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000510 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000511 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000512 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000513 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("No CPU device found\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000514 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000515 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000516 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000517 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000518 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000519 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data from a_d, should be half of data from b_d\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000520 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = (entries - 5); i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000521 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000522 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000523 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k2Event[0],"Kernel 2"); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000524 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k1Event[0],"Kernel 1"); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000525 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k3Event[0],"Kernel 3"); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000526 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000527 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // tidy up ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000528 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(Devices); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000529 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(CommandQs); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000530 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(a_h); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000531 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clReleaseMemObject(a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000532 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clReleaseMemObject(b_d); ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000533 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000534 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000687 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #profile4xi profile = "11" / ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000688 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000689 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #program4xi program = "zpu2sampler4xi5test.py" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000690 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #abstract4xi abstract = "tests zpu2sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000691 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #verify4xi verification = "11" target = "zpu2sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000692 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #contextualize4xi context = "sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000693 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000694 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000695 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000696 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000697 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Public API ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000698 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000699 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #interface4xi interface = " ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000700 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __all__ = ['zpu2sampler4xi5test'] ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000701 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000702 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000703 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000704 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000705 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Standard Imports ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000706 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000707 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #standardize4xi standard = " ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000708 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import os ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000709 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import sys ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000710 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import threading ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000711 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import _thread ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000712 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000713 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import signal ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000714 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import itertools ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000715 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import weakref ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000716 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import logging ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000717 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000718 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000719 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000720 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000721 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000722 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Scope4Xi imports ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000723 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000724 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #dragonize4xi dragonization = " ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000725 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import version4xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000726 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000727 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000728 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000729 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000730 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000731 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Multiprocessing Imports ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000732 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000733 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #process4xi process = " ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000734 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import _multiprocessing ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000735 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000736 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000737 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000738 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000739 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DragonXi imports ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000740 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000741 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #dragonize4xi dragonization = " ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000742 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pipe4xi import Pipe4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000743 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platformids4xi import get2platformids4xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000744 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from queue4xi import Queue4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000745 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000746 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000747 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Command queue module ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000748 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000749 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import ZPU2CommandQueue4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000750 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import create2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000751 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import flush2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000752 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import finish2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000753 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import get2commandqueueinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000754 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import release2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000755 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import retain2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000756 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import set2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000757 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import trace2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000758 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000759 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000760 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Context module ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000761 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000762 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import ZPU2Context4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000763 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import create2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000764 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import get2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000765 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import release2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000766 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import retain2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000767 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import set2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000768 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000769 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000770 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000771 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Device module ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000772 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000773 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import ZPU4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000774 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import init2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000775 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import set2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000776 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import get2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000777 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000778 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000779 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000780 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Event module ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000781 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000782 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import ZPU2Event4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000783 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import create2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000784 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import get2eventinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000785 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import release2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000786 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import retain2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000787 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import set2eventcallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000788 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import set2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000789 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import trace2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000790 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import wait2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000791 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000792 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000793 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Image module ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000794 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000795 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import ZPU2Image4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000796 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import create2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000797 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import get2imageinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000798 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import get2supportedimageformats4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000799 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copyimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000800 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000801 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copybuffertoimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000802 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2readimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000803 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2writeimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000804 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2mapimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000805 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000806 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2imagetobuffer4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000807 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2buffertoimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000808 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import read2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000809 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import map2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000810 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import release2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000811 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import retain2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000812 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import set2imagecallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000813 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import set2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000814 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import trace2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000815 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import wait2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000816 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import write2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000817 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000818 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000819 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Sampler module ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000820 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000821 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import ZPU2Sampler4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000822 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import create2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000823 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import get2samplerinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000824 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import release2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000825 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import retain2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000826 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import set2samplercallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000827 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import set2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000828 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import trace2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000829 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000830 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000831 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Platform module ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000832 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000833 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import PlatformInfo4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000834 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import init2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000835 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import set2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000836 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import get2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000837 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000838 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000839 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Trace modules ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000840 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000841 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000842 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !! ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000843 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000844 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000845 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000846 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000847 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000848 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2a4xi import Pickle2a4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000849 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2b4xi import Pickle2b4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000850 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2c4xi import Pickle2c4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000851 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2d4xi import Pickle2d4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000852 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2e4xi import Pickle2e4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000853 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2f4xi import Pickle2f4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000854 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2g4xi import Pickle2g4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000855 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2h4xi import Pickle2h4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000856 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2i4xi import Pickle2i4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000857 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2j4xi import Pickle2j4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000858 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2k4xi import Pickle2k4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000859 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2l4xi import Pickle2l4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000860 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2m4xi import Pickle2m4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000861 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2n4xi import Pickle2n4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000862 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2o4xi import Pickle2o4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000863 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2p4xi import Pickle2p4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000864 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2q4xi import Pickle2q4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000865 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2r4xi import Pickle2r4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000866 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2s4xi import Pickle2s4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000867 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2t4xi import Pickle2t4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000868 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2u4xi import Pickle2u4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000869 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2v4xi import Pickle2v4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000870 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2w4xi import Pickle2w4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000871 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2x4xi import Pickle2x4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000872 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2y4xi import Pickle2y4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000873 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2z4xi import Pickle2z4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000874 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2_4xi import Pickle2_4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000875 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000876 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000877 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2a4xi import Actor2a4Xi # define functions and class for zapping ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000878 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on! ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000879 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2c4xi import Actor2c4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000880 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2d4xi import Actor2d4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000881 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2e4xi import Actor2e4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000882 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2f4xi import Actor2f4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000883 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2g4xi import Actor2g4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000884 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2h4xi import Actor2h4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000885 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2i4xi import Actor2i4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000886 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2j4xi import Actor2j4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000887 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2k4xi import Actor2k4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000888 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2l4xi import Actor2l4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000889 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2m4xi import Actor2m4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000890 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2n4xi import Actor2n4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000891 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2o4xi import Actor2o4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000892 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2p4xi import Actor2p4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000893 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2q4xi import Actor2q4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000894 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2r4xi import Actor2r4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000895 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2s4xi import Actor2s4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000896 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2t4xi import Actor2t4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000897 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2u4xi import Actor2u4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000898 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2v4xi import Actor2v4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000899 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2w4xi import Actor2w4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000900 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2x4xi import Actor2x4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000901 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2y4xi import Actor2y4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000902 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2z4xi import Actor2z4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000903 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2_4xi import Actor2_4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000904 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from time4xi import time4xi # time stamp to events ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000905 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000906 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_sense4xi import xml_trace_sense4xi # XML trace ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000907 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_reason4xi import xml_trace_reason4xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000908 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_ace4xi import xml_trace_ace4xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000909 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000910 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000911 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000912 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000913 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000914 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Global constants ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000915 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000916 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #globalize4xi globalization = " ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000917 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000918 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000919 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000920 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000921 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Settings ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000922 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000923 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #set4xi setting = " ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000924 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: PickleKB4Xi = { ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000925 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'a': Pickle2a4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000926 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000927 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'b': Pickle2b4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000928 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000929 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'c': Pickle2c4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000930 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000931 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'd': Pickle2d4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000932 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000933 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'e': Pickle2e4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000934 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'f': Pickle2f4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000935 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'g': Pickle2g4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000936 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'h': Pickle2h4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000937 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'i': Pickle2i4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000938 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'j': Pickle2j4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000939 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'k': Pickle2k4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000940 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'l': Pickle2l4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000941 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'm': Pickle2m4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000942 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'n': Pickle2n4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000943 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'o': Pickle2o4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000944 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'p': Pickle2p4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000945 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'q': Pickle2q4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000946 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'r': Pickle2r4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000947 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 's': Pickle2s4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000948 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 't': Pickle2t4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000949 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'u': Pickle2u4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000950 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'v': Pickle2v4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000951 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'w': Pickle2w4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000952 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'x': Pickle2x4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000953 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'y': Pickle2y4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000954 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'z': Pickle2z4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000955 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: '_': Pickle2_4Xi} ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000956 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000957 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"/ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000958 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000959 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000960 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000961 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions ! ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000962 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000963 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000964 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def set2trace4xi(): ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000965 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000966 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000967 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000968 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000969 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000970 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000971 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000972 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000973 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000974 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000975 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000976 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000977 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000978 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000979 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000980 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000981 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000982 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING LETTER : ", key2pickledb) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000983 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000984 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000985 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000986 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000987 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000988 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000989 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000990 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000991 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000992 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000993 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000994 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000995 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000996 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000997 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000998 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000000999 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001000 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001001 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001002 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001003 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001004 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("PICKLED object: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001005 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001006 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001007 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Mark those with NACK4XI to be traced ! ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001008 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001009 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if dictionary2pickle[key2dictionary] == 'NACK4XI': ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001010 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = True ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001011 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001012 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001013 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001014 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001015 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001016 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pass ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001017 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001018 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001019 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001020 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001021 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001022 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001023 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001024 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001025 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001026 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001027 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001028 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001029 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001030 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001031 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001032 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001033 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001034 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001035 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001036 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001037 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001038 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001039 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001040 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001041 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001042 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "deny2trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001043 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # deny trace using pickle4xi functions ! ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001044 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001045 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001046 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def deny2trace4xi(): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001047 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001048 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001049 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001050 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001051 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001052 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001053 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001054 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001055 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001056 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001057 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001058 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001059 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001060 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001061 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001062 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001063 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001064 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001065 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001066 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001067 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001068 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001069 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001070 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001071 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001072 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001073 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001074 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001075 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001076 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001077 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001078 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STEP: PICKLED object: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001079 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001080 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001081 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001082 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK4XI = tested .i.e. NOT to be traced! ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001083 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001084 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'ACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001085 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001086 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001087 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001088 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001089 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle[key2dictionary] = 'ACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001090 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001091 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001092 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001093 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001094 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001095 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001096 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001097 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001098 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001099 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001100 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001101 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001102 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001103 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001104 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001105 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001106 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001107 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001108 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # _, a ... z ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001109 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001110 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001111 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001112 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001113 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "tailor2trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001114 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # tailors trace ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001115 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001116 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001117 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def tailor2trace4xi(): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001118 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001119 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001120 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001121 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001122 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001123 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001124 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001125 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001126 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Settings to tailor trace ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001127 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001128 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #set4xi setting = " ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001129 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: KB4Tailoring = { ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001130 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ZPU2Sampler4Xi': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001131 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'create2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001132 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'get2samplerinfo4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001133 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'retain2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001134 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'release2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001135 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'trace2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001136 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'set2samplercallback4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001137 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'set2sampler4zpu': 'NACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001138 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001139 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001140 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001141 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"/ ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001142 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001143 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001144 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PROCESS KB4Tailoring ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001145 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001146 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2tailor = sorted(KB4Tailoring.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001147 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2tailor in keys2tailor: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001148 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001149 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001150 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001151 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'NACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001152 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = key2tailor ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001153 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001154 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001155 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001156 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001157 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001158 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EOF KEYS ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001159 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001160 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001161 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001162 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001163 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001164 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001165 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001166 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "print-trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001167 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print XML trace for sampler4zpu test ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001168 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001169 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001170 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def print2trace4xi(t2xi): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001171 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001172 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001173 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001174 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # SENSE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001175 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001176 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001177 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2sense = { ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001178 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001179 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001180 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001181 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001182 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001183 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="Dragon4Xi#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001184 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001185 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="sensed#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001186 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001187 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001188 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001189 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_sense4xi(t2xi, context2sense) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001190 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001191 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001192 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # REASON ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001193 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001194 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001195 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2reason = { ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001196 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001197 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001198 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001199 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001200 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Operations/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001201 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'operation_comment4xi': ' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001202 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="reasoned#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001203 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001204 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="reason#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001205 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"reason/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001206 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001207 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001208 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_reason4xi(t2xi, context2reason) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001209 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001210 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001211 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001212 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001213 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001214 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2ace = { ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001215 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001216 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001217 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001218 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Acing of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001219 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001220 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="ACE4Xi#0000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001221 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001222 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="ace#0000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001223 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"000000/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001224 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001225 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001226 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_ace4xi(t2xi, context2ace) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001227 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001228 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001229 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001230 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # end of print2trace4xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001231 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001232 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001233 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001234 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001235 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "zpu2sampler4xi5test" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001236 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # tests sampler4zpu ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001237 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001238 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001239 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def zpu2sampler4xi5test(): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001240 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001241 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001242 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001243 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001244 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # INITIALIZE TRACE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001245 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001246 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi = Print4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001247 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set2trace4xi() # trace all classes and functions in the system ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001248 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: deny2trace4xi() # deny trace for all classes and functions in the system ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001249 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: tailor2trace4xi() # tailor trace for this test ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001250 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001251 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001252 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001253 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # START TESTING ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001254 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001255 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001256 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001257 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001258 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001259 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001260 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001261 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001262 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001263 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001264 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001265 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = create2sampler4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001266 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001267 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001268 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001269 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001270 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001271 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001272 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001273 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001274 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001275 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001276 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001277 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001278 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001279 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001280 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001281 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001282 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001283 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001284 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001285 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001286 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001287 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001288 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001289 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001290 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001291 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001292 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001293 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001294 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001295 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001296 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001297 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001298 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001299 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001300 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001301 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001302 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001303 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001304 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001305 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4samplerinfo2zpu.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001306 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001307 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4samplerinfo2zpu[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001308 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001309 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001310 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001311 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001312 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001313 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001314 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001315 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001316 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001317 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001318 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001319 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001320 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001321 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001322 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001323 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001324 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001325 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001326 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001327 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001328 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001329 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001330 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001331 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001332 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001333 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001334 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001335 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001336 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001337 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001338 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001339 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001340 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001341 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001342 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001343 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001344 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001345 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001346 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001347 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001348 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001349 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001350 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001351 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001352 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001353 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001354 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (1) GET PLATFORM IDs TO SET CONTEXT ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001355 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001356 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001357 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001358 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001359 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001360 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001361 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = get2platformids4xi() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001362 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001363 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001364 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001365 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001366 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001367 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001368 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001369 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (2) INITIALIZE DEVICE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001370 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001371 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001372 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001373 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001374 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001375 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: device2zpu = init2zpu4xi() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001376 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001377 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001378 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001379 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001380 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001381 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001382 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001383 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001384 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (3) CREATE CONTEXT ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001385 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001386 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001387 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001388 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001389 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001390 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2zpu = create2context4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001391 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001392 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001393 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001394 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001395 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001396 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001397 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001398 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001399 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001400 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001401 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001402 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001403 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001404 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001405 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001406 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001407 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001408 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001409 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001410 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001411 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001412 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001413 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001414 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001415 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001416 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001417 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE PROPERTIES - NONE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001418 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001419 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PROPERTIES'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001420 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001421 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001422 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001423 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) DEFINE ERROR CODE - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001424 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001425 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001426 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001427 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001428 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001429 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) SET QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001430 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001431 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001432 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001433 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001434 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001435 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001436 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # queue4xi.Queue4Xi object at 0x0000000003B050F0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001437 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001438 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001439 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001440 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001441 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001442 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001443 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET PIPE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001444 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001445 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001446 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001447 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001448 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001449 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001450 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001451 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001452 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001453 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001454 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001455 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001456 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001457 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET REST ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001458 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001459 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001460 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001461 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001462 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001463 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001464 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001465 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001466 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001467 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001468 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001469 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001470 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001471 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001472 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001473 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001474 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001475 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001476 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001477 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001478 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001479 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001480 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001481 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET SAMPLER - FINALLY! ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001482 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001483 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001484 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001485 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001486 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = set2sampler4zpu(task4set2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001487 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001488 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001489 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001490 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001491 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001492 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001493 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0 ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001494 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001495 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001496 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001497 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001498 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001499 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001500 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001501 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001502 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001503 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001504 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001505 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001506 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001507 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001508 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001509 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001510 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001511 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001512 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001513 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001514 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001515 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001516 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001517 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001518 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001519 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001520 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001521 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001522 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001523 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001524 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001525 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = release2sampler4zpu(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001526 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001527 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001528 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001529 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001530 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001531 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001532 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001533 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001534 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001535 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001536 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001537 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001538 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001539 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001540 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001541 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001542 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001543 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001544 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001545 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001546 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001547 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001548 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001549 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001550 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001551 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001552 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001553 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001554 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001555 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001556 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001557 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001558 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001559 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001560 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = retain2sampler4zpu(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001561 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001562 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001563 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001564 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001565 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001566 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001567 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001568 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001569 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001570 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001571 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001572 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001573 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (14) SAMPLER CALLBACK ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001574 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001575 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001576 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001577 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001578 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4setcallback2sampler = set2samplercallback4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001579 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001580 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001581 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001582 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001583 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001584 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001585 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001586 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: TRACE FUNCTION TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001587 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001588 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001589 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001590 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001591 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001592 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001593 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = trace2sampler4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001594 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001595 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001596 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001597 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001598 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001599 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001600 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001601 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001602 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001603 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001604 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001605 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001606 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001607 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001608 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001609 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001610 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001611 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CREATE WITH OBJECT ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001612 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001613 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: samplerobject2zpu = ZPU2Sampler4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001614 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001615 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001616 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001617 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001618 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT') ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001619 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001620 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001621 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - GET METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001622 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001623 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001624 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001625 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001626 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001627 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4get2samplerinfo.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001628 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001629 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4get2samplerinfo[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001630 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001631 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001632 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001633 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001634 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001635 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001636 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001637 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001638 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001639 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001640 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001641 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001642 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001643 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001644 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001645 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001646 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001647 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001648 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001649 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001650 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001651 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001652 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001653 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001654 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001655 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001656 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001657 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001658 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001659 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001660 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001661 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001662 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001663 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001664 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001665 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001666 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001667 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001668 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001669 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001670 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001671 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001672 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001673 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001674 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001675 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001676 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001677 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001678 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001679 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001680 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001681 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001682 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001683 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001684 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001685 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001686 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001687 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001688 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001689 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001690 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001691 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001692 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001693 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001694 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001695 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001696 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001697 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001698 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001699 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001700 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001701 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001702 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001703 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001704 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001705 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001706 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001707 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001708 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE ERROR CODE - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001709 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001710 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001711 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001712 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001713 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001714 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001715 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001716 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001717 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001718 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001719 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001720 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001721 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001722 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001723 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001724 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001725 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001726 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001727 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) PIPE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001728 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001729 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001730 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001731 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001732 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001733 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001734 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001735 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001736 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001737 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001738 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001739 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001740 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET COMMAND QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001741 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001742 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001743 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001744 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001745 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001746 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001747 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001748 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001749 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001750 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001751 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001752 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001753 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001754 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET ADDRESSINGMODE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001755 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001756 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001757 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001758 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001759 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001760 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001761 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001762 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001763 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001764 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001765 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001766 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001767 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001768 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001769 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) SET FILTERINGMODE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001770 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001771 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001772 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001773 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001774 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001775 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001776 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_FILTER_LINEAR ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001777 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001778 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001779 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001780 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001781 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001782 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001783 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001784 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001785 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001786 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001787 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001788 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001789 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001790 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001791 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001792 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001793 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001794 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001795 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001796 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001797 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001798 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001799 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001800 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001801 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001802 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001803 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_LINEAR ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001804 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001805 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001806 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001807 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001808 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001809 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001810 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001811 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001812 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001813 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001814 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001815 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001816 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001817 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001818 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001819 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001820 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001821 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001822 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001823 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001824 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001825 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001826 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001827 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001828 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001829 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001830 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001831 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001832 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001833 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001834 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001835 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001836 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001837 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001838 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001839 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001840 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001841 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001842 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001843 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001844 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001845 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001846 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001847 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001848 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001849 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001850 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001851 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001852 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001853 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001854 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001855 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001856 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001857 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001858 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001859 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001860 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001861 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xi2zpu = ZPU2Sampler4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001862 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = xi2zpu.create2sampler() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001863 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001864 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001865 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001866 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001867 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001868 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001869 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001870 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001871 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001872 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001873 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001874 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001875 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001876 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001877 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001878 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001879 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001880 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001881 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001882 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001883 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001884 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001885 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001886 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001887 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001888 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001889 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001890 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001891 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001892 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001893 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001894 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: callback2zpu = xi2zpu.set2samplercallback() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001895 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001896 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001897 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001898 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001899 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001900 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001901 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001902 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001903 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - TRACE SAMPLERS ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001904 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001905 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001906 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001907 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001908 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001909 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001910 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001911 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001912 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = xi2zpu.trace2sampler() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001913 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001914 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001915 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001916 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001917 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001918 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001919 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001920 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001921 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001922 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001923 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001924 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001925 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001926 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001927 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001928 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001929 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001930 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001931 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001932 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001933 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001934 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001935 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = xi2zpu.release2sampler(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001936 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001937 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001938 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001939 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001940 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001941 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001942 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001943 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001944 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001945 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001946 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001947 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001948 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001949 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001950 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001951 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001952 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001953 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001954 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001955 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001956 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001957 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001958 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001959 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001960 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001961 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001962 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001963 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001964 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001965 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001966 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001967 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001968 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001969 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001970 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001971 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001972 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001973 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001974 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001975 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001976 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001977 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001978 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001979 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001980 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001981 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001982 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001983 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001984 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001985 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001986 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001987 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001988 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001989 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001990 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001991 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001992 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001993 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001994 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SENSE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001995 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001996 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001997 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001998 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000001999 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002000 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002001 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.sense()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002002 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002003 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002004 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002005 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002006 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002007 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002008 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002009 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002010 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002011 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002012 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - REASON SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002013 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002014 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002015 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002016 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002017 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002018 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002019 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.reason()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002020 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002021 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002022 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002023 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002024 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002025 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002026 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002027 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002028 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002029 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002030 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - ACE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002031 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002032 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002033 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002034 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002035 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002036 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002037 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.ace()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002038 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002039 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002040 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002041 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002042 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002043 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002044 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002045 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002046 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002047 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002048 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DONE - ALL TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002049 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002050 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002051 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002052 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002053 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002054 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002055 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002056 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: finally: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002057 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002058 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Print Trace ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002059 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002060 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print2trace4xi(t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002061 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002062 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002063 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002064 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002065 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002066 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "main" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002067 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # main function for zpu2sampler4xi5test ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002068 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002069 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002070 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def main(): ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002071 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002072 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002073 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002074 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002075 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002076 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002077 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: zpu2sampler4xi5test() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002078 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002079 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002080 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002081 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002082 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002083 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002084 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002085 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002086 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002087 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002088 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002089 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # __main__ ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002090 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002091 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if __name__ == '__main__': ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002092 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: main() ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002093 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/program4xi ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002094 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002095 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002096 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002097 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Recorded History ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002098 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002099 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #record4xi record = " ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002100 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # zpu2sampler4xi5test.txt ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002101 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # sense-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002102 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # reason-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002103 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ace-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002104 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002105 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002106 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002107 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #acknowledge4xi acknowledgement = "33" tester = "Small Smart"/ ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002108 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002109 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002110 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # to-be-done ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002111 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002112 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #do4xi do = " ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002113 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # nothing ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002114 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002115 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002116 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002117 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #note4xi note = " ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002118 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # parse4xi.py - to parse this module ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002119 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # "/ ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002120 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002121 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002122 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Legal Notice ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002123 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002124 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #protect4xi protection = "copyright" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002125 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # owner = "Small Smart" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002126 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # rights = "All rights reserved" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002127 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # state = "California" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002128 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # country = "United States of America" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002129 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # codes = "Codes established in California and applicable to corporations in California" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002130 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # compliance = "The California Law" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002131 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002132 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002133 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002134 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #end4xi end = " ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002135 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002136 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # end of zpu2sampler4xi5test.py ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002137 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002138 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} readfetch2programsource4zpufetch2programsource4zpu#000002139 {(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002351 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DIRECTORY4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002352 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COMMANDQUEUE; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002353 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002354 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: NACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002355 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: BUFFER; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002356 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: LANGUAGE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002357 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DATA2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002358 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PIPE; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002359 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: ACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002360 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002361 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: QUEUE; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002362 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PLATFORM; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002363 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: EVENT; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002364 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: FUNCTION2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002365 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CONTEXT; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002366 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: SIZE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002367 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT2REFERENCE; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002368 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE2ERROR; time: 08:41:49 02/18/15 FLE Standard Time} returningcreate2programwithsource4zpucreate2programwithsource4zpu#000002369 {(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DEVICE; time: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000035 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000036 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000051 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000061 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000062 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000077 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000092 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000107 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000122 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000137 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000152 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000167 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000182 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000538 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000553 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000568 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000583 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000598 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000613 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000628 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000643 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000658 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000000673 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002145 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002160 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002175 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002186 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002187 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002197 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002198 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002208 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002209 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002219 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002220 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002230 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002231 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002241 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002242 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002252 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002253 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002263 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002264 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002274 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002275 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002285 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002286 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002296 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002297 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002307 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} returningfetch2programsource4zpufetch2programsource4zpu#000002308 {(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} savedfetch2programsource4zpufetch2programsource4zpu#000000536 {(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} savedfetch2programsource4zpufetch2programsource4zpu#000002141 {(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} savingfetch2programsource4zpufetch2programsource4zpu#000000197 {(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 3; time: 08:41:48 02/18/15 FLE Standard Time} savingfetch2programsource4zpufetch2programsource4zpu#000000686 {(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 1; time: 08:41:48 02/18/15 FLE Standard Time} setcreate2programwithsource4zpucreate2programwithsource4zpu#000000024 {(Step 11B/70) set; count2zpu-set-by-create2programwithsource4zpu to: 2; time: 08:41:48 02/18/15 FLE Standard Time} setcreate2programwithsource4zpucreate2programwithsource4zpu#000000025 {(Step 12B/70) set; dir2zpu-set-by-create2programwithsource4zpu to: e://scope4xi//041721//zap//lib//z//; time: 08:41:48 02/18/15 FLE Standard Time} setcreate2programwithsource4zpucreate2programwithsource4zpu#000002311 {(Step 14B/70) set; size2source4zpu-set-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time} setcreate2programwithsource4zpucreate2programwithsource4zpu#000002312 {(Step 15B/70) set; language2zpu-set-by-create2programwithsource4zpu to: Python; time: 08:41:49 02/18/15 FLE Standard Time} setcreate2programwithsource4zpucreate2programwithsource4zpu#000002313 {(Step 17B/70) set; count2reference2zpu-set-by-create2programwithbinary4zpu to: 1; time: 08:41:49 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000045 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000071 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000086 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000101 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000116 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000131 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000146 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000161 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000176 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000191 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000547 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000562 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000577 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000592 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000607 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000622 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000637 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000652 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000667 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000000682 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000002154 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} setfetch2programsource4zpufetch2programsource4zpu#000002169 {(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000033 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//index', '.html'); time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000034 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: html; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000047 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000048 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000049 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000050 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000059 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//z2scope4xi', '.txt'); time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000060 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: txt; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000073 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000074 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000075 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000076 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000088 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000089 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000090 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000091 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000103 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000104 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000105 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000106 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000118 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000119 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000120 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000121 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000133 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000134 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000135 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000136 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000148 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000149 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000150 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000151 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000163 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000164 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000165 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000166 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000178 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000179 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000180 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000181 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000193 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000194 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000537 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000549 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000550 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000551 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000552 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000564 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000565 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000566 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000567 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000579 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000580 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000581 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000582 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000594 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000595 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000596 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000597 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000609 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000610 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000611 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000612 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000624 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000625 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000626 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000627 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000639 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000640 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000641 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000642 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000654 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000655 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000656 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000657 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000669 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000670 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000671 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000000672 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002142 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002143 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002144 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002156 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002157 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002158 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002159 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002171 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002172 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002173 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002174 {(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002184 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\version4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002185 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002195 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\z2skeleton4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002196 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002206 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2buffer4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002207 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002217 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2commandqueue4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002218 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002228 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2context4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002229 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002239 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2device4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002240 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002250 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2event4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002251 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002261 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002262 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002272 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2kernel4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002273 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002283 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2program4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002284 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002294 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2sampler4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002295 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002305 {(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu3image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} skippedfetch2programsource4zpufetch2programsource4zpu#000002306 {(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} startedcreate2programwithsource4zpucreate2programwithsource4zpu#000000001 {(Step 1A/70) started; create2programwithsource4zpu-started: function create2programwithsource4zpu at 0x02EA5C00; time: 08:41:48 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002316 {(Step 21A0/70) try; data2callback-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002318 {(Step 22B0/70) try; function2callback-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002320 {(Step 22C0/70) try; platform-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002322 {(Step 23A/70) try; context2zpu-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002324 {(Step 24A/70) try; device-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002326 {(Step 25A/70) try; code2error-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002328 {(Step 26A/70) try; queue-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002330 {(Step 27A/70) try; pipe-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002332 {(Step 28A/70) try; commandqueue-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002334 {(Step 29A/70) try; bufferinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002336 {(Step 30A/70) try; eventinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002338 {(Step 31A1/70) try; task4program2zpu-try-by-create2programwithsource4zpu: {'CODE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}, 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'BUFFER': {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}, 'SIZE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}, 'DIRECTORY': 'e://scope4xi//041721//zap//lib//z//', 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0), 'COUNT': 2, 'QUEUE': queue4xi.Queue4Xi object at 0x029327D0, 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'EVENT': {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}, 'LANGUAGE': 'Python', 'FUNCTION2CALLBACK': function trace2program4zpu at 0x02EA5AE0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'COUNT2REFERENCE': 1, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002339 {(Step 31A2/70) try; count-try-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002341 {(Step 32A/70) try; directory-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002343 {(Step 33A/70) try; codetask-try-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002345 {(Step 34A/70) try; size-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002347 {(Step 35A/70) try; language-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} trycreate2programwithsource4zpucreate2programwithsource4zpu#000002349 {(Step 36A/70) try; count2reference-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000009 {(Step 3A/70) trying; context2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000011 {(Step 4A/70) trying; device2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000013 {(Step 6A/70) trying; queue2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000015 {(Step 7A/70) trying; pipe2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000017 {(Step 8A/70) trying; commandqueueinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000019 {(Step 9A/70) trying; bufferinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000021 {(Step 10A/70) trying; eventinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} tryingcreate2programwithsource4zpucreate2programwithsource4zpu#000000023 {(Step 11A/70) trying; count2zpu-trying-by-create2programwithsource4zpu: 0; time: 08:41:48 02/18/15 FLE Standard Time} usingcreate2programwithsource4zpucreate2programwithsource4zpu#000000026 {(Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4zpu: class 'zpu2program4xi.DirectoryWalker'; time: 08:41:48 02/18/15 FLE Standard Time} usingcreate2programwithsource4zpucreate2programwithsource4zpu#000002314 {(Step 19A/70) using; keys2task-using-by-create2programwithsource4zpu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000032 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000043 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000058 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000069 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000084 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000099 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000114 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000129 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000144 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000159 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000174 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000189 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000545 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000560 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000575 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000590 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000605 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000620 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000635 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000650 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000665 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000000680 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002152 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002167 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002183 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002194 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002205 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002216 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002227 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002238 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002249 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002260 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002271 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002282 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002293 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} usingfetch2programsource4zpufetch2programsource4zpu#000002304 {(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} (STEP 4A/33 XML_TRACE_REASON4XI - TRYING TO SET FILEPATH2XI 08:41:49 02/18/15 FLE Standard Time (STEP 4B/33 XML_TRACE_REASON4XI - SET FILEPATH2XI TO: E:\scope4xi\041721\zap\web\xml\reason-zpu2program4xi5test.xml (STEP 5A/33 XML_TRACE_REASON4XI - OPENED XML FILE: E:\scope4xi\041721\zap\web\xml\reason-zpu2program4xi5test.xml (STEP 5B/33 XML_TRACE_REASON4XI - TRYING TO WRITE HEADER FOR XML FILE: E:\scope4xi\041721\zap\web\xml\reason-zpu2program4xi5test.xml (STEP 5C/33 XML_TRACE_REASON4XI - WROTE HEADER FOR XML FILE: E:\scope4xi\041721\zap\web\xml\reason-zpu2program4xi5test.xml xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1A/33) analyzing; program2explore4zpu-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2A/33) analyzing; path2input4source-analyzing-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14D/70) calling; fetch2programsource4zpu-calling-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 31A/33) closed; file2input4source-closed-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 33B/70) created; code-created-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 2B/33) decided; program-to-read-decided-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//bin; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14B/70) examining; directory-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14C/70) examining; file-examining-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 2B/70) got; platform2xi-got-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 3B/70) got; context2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 4B/70) got; device2zpu-got-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 6B/70) got; queue2zpu-got-by-create2programwithsource4zpu: queue4xi.Queue4Xi object at 0x029327D0; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 7B/70) got; pipe2zpu-got-by-create2programwithsource4zpu: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 8B/70) got; commandqueueinfo2zpu-got-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 9B/70) got; bufferinfo2zpu-got-by-create2programwithsource4zpu: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 10B/70) got; eventinfo2zpu-got-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14F/70) got; fetch2code4source-got-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1C/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1D/70) initialized; function2callback4zpu-created-by-create2programwithsource4zpu: function trace2program4zpu at 0x02EA5AE0; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1E/70) initialized; args2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1F/70) initialized; task4program2zpu-created-by-create2programwithsource4zpu: {'FUNCTION2CALLBACK': function trace2program4zpu at 0x02EA5AE0, 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 2A/70) initialized; platform2xi-created-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 20A/70) initialized; zpu2program4xi-initialized-by-create2programwithsource4zpu to: {}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 21A1/70) initialized; data2callback-created-by-create2programwithsource4zpu: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 22B1/70) initialized; function2callback-created-by-create2programwithsource4zpu: function trace2program4zpu at 0x02EA5AE0; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 22C1/70) initialized; platform-created-by-create2programwithsource4zpu: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 23B/70) initialized; context-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 24B/70) initialized; device-created-by-create2programwithsource4zpu: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 25B/70) initialized; code2error-created-by-create2programwithsource4zpu: 0; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 26B/70) initialized; queue-created-by-create2programwithsource4zpu: queue4xi.Queue4Xi object at 0x029327D0; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 27B/70) initialized; pipe-created-by-create2programwithsource4zpu: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 28B/70) initialized; commandqueue-created-by-create2programwithsource4zpu: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 29B/70) initialized; bufferinfo-created-by-create2programwithsource4zpu: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 30B/70) initialized; eventinfo-created-by-create2programwithsource4zpu: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 31B/70) initialized; count-created-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 32B/70) initialized; directory-created-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 34B/70) initialized; size-initialized-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 35B/70) initialized; language-created-by-create2programwithsource4zpu: Python; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 36B/70) initialized; count2reference-created-by-create2programwithsource4zpu: 1; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 3A/33) opened; file2input4source-opened-by-fetch2programsource4zpu: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252'; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1B/70) passed; task4program2zpu-to-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0A/33) passed; program2explore4zpu-passed-to-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//index.html; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) passing; file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14E/70) performed; fetch2programsource4zpu-performed-by-create2programwithsource4zpu: function fetch2programsource4zpu at 0x02EA5DF8; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // zpu2dummy4xi5test.cpp ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ----------------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include stdlib.h ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include stdio.h ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #include CL/opencl.h ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID 0 ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #define DEVID2 1 ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Program source ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const char* KernelSource = ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " __kernel void simple( __global float* A) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = A[tid] + 5; \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple2(__global float *A, int nLoops) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " for (int i = 0; i nLoops; i++) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " } \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " int tid = get_global_id(0); \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " if (tid entries) \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " B[tid] = 2 * A[tid]; \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: " \n" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: "} \n"; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // native kernel data structure ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *inData; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *outData; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int size; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: }; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "myNativeKernel" usage = "native kernel"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void myNativeKernel(void *data) { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData *NKData = (struct myNativeKernelData*)data; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data passed to native kernel\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i NKData-size; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (i (NKData-size -5)) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,NKData-inData[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: NKData-outData[i] = 2*NKData-inData[i]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void printKernelTimes(cl_event event,char *eventName) { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: static cl_ulong baseTime = -1; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_ulong sTime,eTime; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Set the base time and then subtract it to make the numbers easier to read ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (baseTime == -1) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: baseTime = sTime; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (err != CL_SUCCESS) { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Failed to get times for %s\n",eventName); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("%s started at %ld, finished at %ld\n",eventName,(sTime - baseTime),(eTime - baseTime)); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "OCLError" usage = "error code checking"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void OCLError(cl_int err, int line) { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (err != CL_SUCCESS) { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Error at line %d\n",line); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: exit(1); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "nbody_kern" usage = "kernel example 1"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __kernel void nbody_kern( ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float dt1, float eps, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_old, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_new, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* vel, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __local float4* pblock ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int gti = get_global_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int ti = get_local_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int n = get_global_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nt = get_local_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nb = n/nt; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p = pos_old[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 v = vel[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: p += dt*v + 0.5f*dt*dt*a; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: v += dt*a; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pos_new[gti] = p; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: vel[gti] = v; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __kernel void nbody_kern( ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float dt1, float eps, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_old, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos_new, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* vel, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __local float4* pblock, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __global float4* pos2 ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ) { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: const float4 dt = (float4)(dt1,dt1,dt1,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int gti = get_global_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int ti = get_local_id(0); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int n = get_global_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nt = get_local_size(0); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int nb = n/nt; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p = pos_old[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 v = vel[gti]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int jb=0; jb nb; jb++) { /* Foreach block ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 p2 = pblock[j]; /* Read a cached particle position */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float4 d = p2 - p; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float f = p2.w*invr*invr*invr; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a += f*d; /* Accumulate acceleration */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*function4xi function = "main" usage = "main"*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int main() { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // OpenCL Platform, Device etc vars ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_id *Devices; // OpenCL device ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_context Context; // OpenCL context ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: static cl_platform_id Platform; // OpenCL platform ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_program Program; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_command_queue *CommandQs; // OpenCL command queues ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_int err; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Get platform IDs ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetPlatformIDs( 1, Platform, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get all devices ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_uint nDevices = -1; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (nDevices 3) { printf("Num Devices less than 3\n"); exit(1); } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id)); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create a compute context ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create a command queue ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue)); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i nDevices; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create the compute program from the source buffer ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Create the compute kernel from the program ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel = clCreateKernel(Program, "simple", err); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // kernel data vars ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: float *a_h; // host memory used for original data and return data ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem a_d; // device memory used for input/output ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem b_d; // device memory used for output ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: size_t entries = 64000000; // number of entries in the array ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: size_t local = 1; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: int count = 100; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_h = (float *)malloc(entries*sizeof(float)); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i =0; i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_h[i] = (1 25) + 6; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel2, 1, sizeof(int), count); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k2Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k1Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Now try enqueueing a native kernel ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Find a queue that is associated with a CPU device (assumes 1 queue per device) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_command_queue CPUQueue = NULL; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = 0; i nDevices; i++) { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_id qDevID; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_type DevType; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_device_exec_capabilities DevExecCap; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get the device attached to this queue ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // get the type of this device ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // compare the device_type for this device ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) || ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: CPUQueue = CommandQs[i]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event k3Event[1]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_event eventLists[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: eventLists[0] = k2Event[0]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: eventLists[1] = k1Event[0]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if (CPUQueue != NULL) { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #ifndef NATIVEK ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clSetKernelArg(Kernel3, 2, sizeof(int), entries); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err,__LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #else ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Allocate and populate the data structure for the nativeKernel ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: struct myNativeKernelData NKData; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: NKData.size = entries; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: cl_mem memList[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memList[0] = a_d; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memList[1] = b_d; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: void *memLocs[2]; ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memLocs[0] = (NKData.inData); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: memLocs[1] = (NKData.outData); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // Enqueue the kernel ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #endif ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data from b_d\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = (entries - 5); i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("No CPU device found\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: OCLError(err, __LINE__); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("Data from a_d, should be half of data from b_d\n"); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for (int i = (entries - 5); i entries; i++) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printf("n, x = %d %f\n",i,a_h[i]); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k2Event[0],"Kernel 2"); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k1Event[0],"Kernel 1"); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: printKernelTimes(k3Event[0],"Kernel 3"); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: // tidy up ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(Devices); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(CommandQs); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: free(a_h); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clReleaseMemObject(a_d); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: clReleaseMemObject(b_d); ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: /*/function4xi*/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #profile4xi profile = "11" / ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #program4xi program = "zpu2sampler4xi5test.py" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #abstract4xi abstract = "tests zpu2sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #verify4xi verification = "11" target = "zpu2sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #contextualize4xi context = "sampler4xi.py"/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Public API ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #interface4xi interface = " ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: __all__ = ['zpu2sampler4xi5test'] ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Standard Imports ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #standardize4xi standard = " ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import os ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import sys ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import threading ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import _thread ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import signal ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import itertools ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import weakref ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import logging ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Scope4Xi imports ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #dragonize4xi dragonization = " ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import version4xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Multiprocessing Imports ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #process4xi process = " ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: import _multiprocessing ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DragonXi imports ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #dragonize4xi dragonization = " ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pipe4xi import Pipe4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platformids4xi import get2platformids4xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from queue4xi import Queue4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Command queue module ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import ZPU2CommandQueue4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import create2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import flush2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import finish2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import get2commandqueueinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import release2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import retain2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import set2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2commandqueue4xi import trace2commandqueue4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Context module ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import ZPU2Context4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import create2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import get2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import release2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import retain2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2context4xi import set2context4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Device module ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import ZPU4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import init2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import set2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2device4xi import get2zpu4xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Event module ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import ZPU2Event4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import create2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import get2eventinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import release2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import retain2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import set2eventcallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import set2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import trace2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2event4xi import wait2event4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Image module ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import ZPU2Image4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import create2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import get2imageinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import get2supportedimageformats4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copyimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2copybuffertoimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2readimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2writeimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import manoeuvre2mapimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2imagetobuffer4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import copy2buffertoimage4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import read2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import map2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import release2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import retain2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import set2imagecallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import set2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import trace2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import wait2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2image4xi import write2image4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Sampler module ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import ZPU2Sampler4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import create2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import get2samplerinfo4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import release2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import retain2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import set2samplercallback4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import set2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from zpu2sampler4xi import trace2sampler4zpu ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Platform module ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import PlatformInfo4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import init2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import set2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from platforminfo4xi import get2platforminfo4xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Trace modules ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !! ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2a4xi import Pickle2a4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2b4xi import Pickle2b4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2c4xi import Pickle2c4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2d4xi import Pickle2d4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2e4xi import Pickle2e4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2f4xi import Pickle2f4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2g4xi import Pickle2g4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2h4xi import Pickle2h4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2i4xi import Pickle2i4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2j4xi import Pickle2j4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2k4xi import Pickle2k4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2l4xi import Pickle2l4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2m4xi import Pickle2m4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2n4xi import Pickle2n4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2o4xi import Pickle2o4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2p4xi import Pickle2p4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2q4xi import Pickle2q4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2r4xi import Pickle2r4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2s4xi import Pickle2s4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2t4xi import Pickle2t4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2u4xi import Pickle2u4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2v4xi import Pickle2v4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2w4xi import Pickle2w4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2x4xi import Pickle2x4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2y4xi import Pickle2y4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2z4xi import Pickle2z4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from pickle2_4xi import Pickle2_4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2a4xi import Actor2a4Xi # define functions and class for zapping ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on! ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2c4xi import Actor2c4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2d4xi import Actor2d4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2e4xi import Actor2e4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2f4xi import Actor2f4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2g4xi import Actor2g4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2h4xi import Actor2h4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2i4xi import Actor2i4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2j4xi import Actor2j4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2k4xi import Actor2k4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2l4xi import Actor2l4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2m4xi import Actor2m4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2n4xi import Actor2n4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2o4xi import Actor2o4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2p4xi import Actor2p4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2q4xi import Actor2q4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2r4xi import Actor2r4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2s4xi import Actor2s4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2t4xi import Actor2t4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2u4xi import Actor2u4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2v4xi import Actor2v4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2w4xi import Actor2w4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2x4xi import Actor2x4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2y4xi import Actor2y4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2z4xi import Actor2z4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from actor2_4xi import Actor2_4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from time4xi import time4xi # time stamp to events ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_sense4xi import xml_trace_sense4xi # XML trace ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_reason4xi import xml_trace_reason4xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: from xml_trace_ace4xi import xml_trace_ace4xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Global constants ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #globalize4xi globalization = " ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Settings ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #set4xi setting = " ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: PickleKB4Xi = { ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'a': Pickle2a4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'b': Pickle2b4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'c': Pickle2c4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'd': Pickle2d4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'e': Pickle2e4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'f': Pickle2f4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'g': Pickle2g4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'h': Pickle2h4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'i': Pickle2i4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'j': Pickle2j4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'k': Pickle2k4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'l': Pickle2l4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'm': Pickle2m4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'n': Pickle2n4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'o': Pickle2o4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'p': Pickle2p4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'q': Pickle2q4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'r': Pickle2r4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 's': Pickle2s4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 't': Pickle2t4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'u': Pickle2u4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'v': Pickle2v4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'w': Pickle2w4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'x': Pickle2x4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'y': Pickle2y4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'z': Pickle2z4Xi, ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: '_': Pickle2_4Xi} ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"/ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions ! ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ---------------------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def set2trace4xi(): ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING LETTER : ", key2pickledb) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STARTING OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("PICKLED object: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Mark those with NACK4XI to be traced ! ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if dictionary2pickle[key2dictionary] == 'NACK4XI': ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = True ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: else: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: pass ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("COMPLETED LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 33/33) OF SET2TRACE4XI - COMPLETED SETTING TRACE BASED ON NACK4XI/ACK4XI SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "deny2trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # deny trace using pickle4xi functions ! ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def deny2trace4xi(): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # A, B .... _ ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2pickledb = sorted(PickleKB4Xi.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2pickledb in keys2pickledb: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle = PickleKB4Xi[key2pickledb] ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2dictionary = sorted(dictionary2pickle.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2dictionary in keys2dictionary: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: object2pickle = key2dictionary ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # pickle4xi(object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("STEP: PICKLED object: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PICKLED object: _C4Xi, ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK4XI = tested .i.e. NOT to be traced! ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'ACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = object2pickle ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: dictionary2pickle[key2dictionary] = 'ACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print('~' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # END OF LETTERS ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # _, a ... z ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "tailor2trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # tailors trace ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def tailor2trace4xi(): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global PickleKB4Xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print4xi.Print4Xi object at 0x0000000003715080 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Settings to tailor trace ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #set4xi setting = " ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: KB4Tailoring = { ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ZPU2Sampler4Xi': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'create2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'get2samplerinfo4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'retain2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'release2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'trace2sampler4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'set2samplercallback4zpu': 'NACK4XI', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'set2sampler4zpu': 'NACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: } ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #"/ ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PROCESS KB4Tailoring ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2tailor = sorted(KB4Tailoring.keys()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2tailor in keys2tailor: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK4XI = NOT TESTED .I.E. TO BE TRACED! ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set_param2xi = 'NACK4XI' ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: key_param = key2tailor ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi.set_print_permission(key_param, set_param2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EOF KEYS ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ----------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "print-trace4xi" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # print XML trace for sampler4zpu test ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def print2trace4xi(t2xi): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # SENSE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2sense = { ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="Dragon4Xi#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="sensed#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_sense4xi(t2xi, context2sense) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # REASON ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2reason = { ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Operations/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'operation_comment4xi': ' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="reasoned#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="reason#000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"reason/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_reason4xi(t2xi, context2reason) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2ace = { ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-zpu2sampler4xi5test.xml', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_about4xi': ' owl:Ontology rdf:about="Acing of OpenCl4Xi"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_id4xi': ' owl:Class rdf:ID="ACE4Xi#0000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'class0_comment4xi': ' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="ace#0000000"\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'object_property_comment4xi': ' rdfs:comment xml:lang="en"000000/rdfs:comment\n', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: 'debug4xi': True} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xml_trace_ace4xi(t2xi, context2ace) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # end of print2trace4xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "zpu2sampler4xi5test" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # tests sampler4zpu ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def zpu2sampler4xi5test(): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global t2xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: global trace_object_count ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # INITIALIZE TRACE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: t2xi = Print4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: set2trace4xi() # trace all classes and functions in the system ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: deny2trace4xi() # deny trace for all classes and functions in the system ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: tailor2trace4xi() # tailor trace for this test ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # START TESTING ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = create2sampler4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4samplerinfo2zpu.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4samplerinfo2zpu[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (1) GET PLATFORM IDs TO SET CONTEXT ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: platform2xi = get2platformids4xi() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (2) INITIALIZE DEVICE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: device2zpu = init2zpu4xi() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (3) CREATE CONTEXT ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: context2zpu = create2context4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE PROPERTIES - NONE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PROPERTIES'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) DEFINE ERROR CODE - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) SET QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # queue4xi.Queue4Xi object at 0x0000000003B050F0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET PIPE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET REST ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET SAMPLER - FINALLY! ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = set2sampler4zpu(task4set2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0 ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = release2sampler4zpu(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = retain2sampler4zpu(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (14) SAMPLER CALLBACK ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4setcallback2sampler = set2samplercallback4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE I: TRACE FUNCTION TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = trace2sampler4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CREATE WITH OBJECT ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: samplerobject2zpu = ZPU2Sampler4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT') ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - GET METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4get2samplerinfo.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4get2samplerinfo[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['NORMALIZATION'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['ADDRESSINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['FILTERINGMODE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (4) INITIALIZE TASK DICTIONARY ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (5) DEFINE CONTEXT - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CONTEXT'] = context2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (6) DEFINE DEVICE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['DEVICE'] = device2zpu ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (7) DEFINE ERROR CODE - REQUIRED ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['CODE2ERROR'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (8) QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['QUEUE'] = Queue4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (9) PIPE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['PIPE'] = Pipe4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (10) SET COMMAND QUEUE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = None ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (11) SET ADDRESSINGMODE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # (12) SET FILTERINGMODE - EXTRA ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CL_FILTER_LINEAR ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4set2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4set2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_LINEAR ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: xi2zpu = ZPU2Sampler4Xi() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4create2sampler = xi2zpu.create2sampler() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4create2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4create2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CODE2ERROR : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FILTERINGMODE : CL_FILTER_NEAREST ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NACK2RETURN : ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # NORMALIZATION : CL_TRUE ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: callback2zpu = xi2zpu.set2samplercallback() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # function trace2sampler4zpu at 0x00000000039676C8 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - TRACE SAMPLERS ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = None ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: trace2zpu = xi2zpu.trace2sampler() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4release2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4release2sampler = xi2zpu.release2sampler(task4release2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4release2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4release2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4retain2sampler ['COUNT2REFERENCE'] = 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4retain2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4retain2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = {} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: keys2response = response4getinfo2sampler.keys() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: for key2response in sorted(keys2response): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(key2response, ' : ', response4getinfo2sampler[key2response]) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # COUNT2REFERENCE : 1 ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - SENSE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.sense()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - REASON SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.reason()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # PHASE II: CLASS TESTS - ACE SAMPLER ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: try: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print(xi2zpu.ace()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # DONE - ALL TESTS ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: except: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: finally: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Print Trace ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # --------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print2trace4xi(t2xi) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #function4xi function = "main" usage = " ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # main function for zpu2sampler4xi5test ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: def main(): ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: zpu2sampler4xi5test() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: print('=' *33) ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/function4xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # __main__ ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: if __name__ == '__main__': ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: main() ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/program4xi ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Recorded History ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #record4xi record = " ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # zpu2sampler4xi5test.txt ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # sense-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # reason-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ace-zpu2sampler4xi5test.xml ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #acknowledge4xi acknowledgement = "33" tester = "Small Smart"/ ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # to-be-done ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #do4xi do = " ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # nothing ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #note4xi note = " ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # parse4xi.py - to parse this module ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # "/ ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # Legal Notice ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #protect4xi protection = "copyright" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # owner = "Small Smart" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # rights = "All rights reserved" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # state = "California" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # country = "United States of America" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # codes = "Codes established in California and applicable to corporations in California" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # compliance = "The California Law" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #end4xi end = " ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # end of zpu2sampler4xi5test.py ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: # ------------------------------------------------------------------------------------------------- ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #" ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 7A/33) read; line2process4source-read-by-fetch2programsource4zpu: #/ ; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DIRECTORY4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COMMANDQUEUE; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: NACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: BUFFER; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: LANGUAGE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DATA2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PIPE; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: ACK2RETURN; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: QUEUE; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: PLATFORM; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: EVENT; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: FUNCTION2CALLBACK; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CONTEXT; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: SIZE4SOURCE; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: COUNT2REFERENCE; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: CODE2ERROR; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 70/70) returning; key2program4zpu-returning-by-create2programwithsource4zpu: DEVICE; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1H/33) returning; fetch2programsource4zpu-returning: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 31B/33) saved; fetch2code4source-saved-by-fetch2programsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 3; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 3B/33) saving; key2fecth4source-saving-by-fetch2programsource4zpu: 1; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 11B/70) set; count2zpu-set-by-create2programwithsource4zpu to: 2; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 12B/70) set; dir2zpu-set-by-create2programwithsource4zpu to: e://scope4xi//041721//zap//lib//z//; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14B/70) set; size2source4zpu-set-by-create2programwithsource4zpu to: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 15B/70) set; language2zpu-set-by-create2programwithsource4zpu to: Python; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 17B/70) set; count2reference2zpu-set-by-create2programwithbinary4zpu to: 1; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1B/33) set; path2input4source-set-by-fetch2programsource4zpu to: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//index', '.html'); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: html; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//version4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//z2scope4xi', '.txt'); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: txt; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1E/33) skipped; path2input4source-skipped-by-fetch2programsource4zpu: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\version4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\z2skeleton4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2buffer4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2commandqueue4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2context4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2device4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2event4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2kernel4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2program4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2sampler4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1F/33) skipped; name2program4source-skipped-by-fetch2programsource4zpu: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu3image4xi.cpython-33', '.pyc'); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 1G/33) skipped; extension-skipped-by-fetch2programsource4zpu: pyc; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 1A/70) started; create2programwithsource4zpu-started: function create2programwithsource4zpu at 0x02EA5C00; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 21A0/70) try; data2callback-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 22B0/70) try; function2callback-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 22C0/70) try; platform-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 23A/70) try; context2zpu-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 24A/70) try; device-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 25A/70) try; code2error-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 26A/70) try; queue-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 27A/70) try; pipe-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 28A/70) try; commandqueue-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 29A/70) try; bufferinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 30A/70) try; eventinfo-try-by-create2programwithsource4zpu: {}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 31A1/70) try; task4program2zpu-try-by-create2programwithsource4zpu: {'CODE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}, 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F593D0, pipeconnection4xi.PipeConnection4Xi object at 0x02F593B0), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F59110, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'BUFFER': {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2buffer4zpu'}, 'SIZE': 278528, 'FLAGS': 0, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2buffer4zpu at 0x02E47540}, 'SIZE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453}, 'DIRECTORY': 'e://scope4xi//041721//zap//lib//z//', 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2programwithsource4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0), 'COUNT': 2, 'QUEUE': queue4xi.Queue4Xi object at 0x029327D0, 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'EVENT': {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2commandqueue4zpu'}, 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59650, pipeconnection4xi.PipeConnection4Xi object at 0x02F59630), 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-8A-9B-10B-9B-10B-11B-12B-13B-14B-15B-16B-17B-18B-', 'QUEUE': queue4xi.Queue4Xi object at 0x02F594D0, 'FUNCTION2CALLBACK': function trace2commandqueue4zpu at 0x02D55660, 'COUNT2REFERENCE': 0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}, 'QUEUE': queue4xi.Queue4Xi object at 0x02F59430, 'DATA2CALLBACK': {'CLASS': 'create2event4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2event4zpu'}, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}, 'CODE2ERROR': 0, 'FUNCTION2CALLBACK': function trace2event4zpu at 0x02D87E88}, 'LANGUAGE': 'Python', 'FUNCTION2CALLBACK': function trace2program4zpu at 0x02EA5AE0, 'CONTEXT': {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ; time: 08:41:48 02/18/15 FLE Standard Time}', 'METHOD': 'create2context4zpu'}, 'NACK2RETURN': ' ', 'FUNCTION2CALLBACK': function trace2context4zpu at 0x02D6E540}, 'COUNT2REFERENCE': 1, 'CODE2ERROR': 0, 'DEVICE': {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 31A2/70) try; count-try-by-create2programwithsource4zpu: 2; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 32A/70) try; directory-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 33A/70) try; codetask-try-by-create2programwithsource4zpu: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:27:49 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 591: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 592: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 593: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 594: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8\n', 595: ' # NACK2RETURN : \n', 596: ' # NORMALIZATION : CL_TRUE\n', 597: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 598: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 599: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8\n', 600: ' except:\n', 601: " print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi())\n", 602: ' \n', 603: ' \n', 604: ' \n', 605: ' \n', 606: ' # ---------------------------------------------------------------------------------------------\n', 607: ' # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION \n', 608: ' # --------------------------------------------------------------------------------------------- \n', 609: " print('=' *33) \n", 610: " print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 611: " print('=' *33) \n", 612: ' task4getinfo2sampler = {}\n', 613: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 614: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 615: " task4getinfo2sampler ['FILTERINGMODE'] = 0 \n", 616: ' try:\n', 617: ' response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) \n', 618: " print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) \n", 619: ' keys2response = response4samplerinfo2zpu.keys()\n', 620: ' for key2response in sorted(keys2response):\n', 621: " print(key2response, ' : ', response4samplerinfo2zpu[key2response])\n", 622: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 623: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 624: ' # NORMALIZATION : CL_TRUE \n', 625: ' \n', 626: ' except:\n', 627: " print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi())\n", 628: ' \n', 629: '\n', 630: ' \n', 631: " print('=' *33) \n", 632: " print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) \n", 633: " print('=' *33) \n", 634: ' try:\n', 635: ' response4getinfo2sampler = get2samplerinfo4zpu() \n', 636: ' keys2response = response4getinfo2sampler.keys()\n', 637: ' for key2response in sorted(keys2response):\n', 638: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 639: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 640: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 641: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 642: ' # CODE2ERROR : 0\n', 643: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 644: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': \n", 645: ' # COUNT2REFERENCE : 1\n', 646: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 647: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', \n", 648: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 649: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 650: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 651: ' # NACK2RETURN : \n', 652: ' # NORMALIZATION : CL_TRUE\n', 653: ' # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392)\n', 654: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 655: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0\n', 656: ' except:\n', 657: " print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi())\n", 658: ' \n', 659: ' \n', 660: ' # ---------------------------------------------------------------------------------------------\n', 661: ' # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES \n', 662: ' # --------------------------------------------------------------------------------------------- \n', 663: " print('=' *33) \n", 664: " print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) \n", 665: " print('=' *33)\n", 666: ' \n', 667: ' # ---------------------------------------------------------------------------------------------\n', 668: ' # (1) GET PLATFORM IDs TO SET CONTEXT\n', 669: ' # --------------------------------------------------------------------------------------------- \n', 670: " print('=' *33) \n", 671: " print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi())\n", 672: " print('=' *33) \n", 673: ' platform2xi = {}\n', 674: ' try:\n', 675: ' platform2xi = get2platformids4xi()\n', 676: " print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) \n", 677: " # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} \n", 678: ' \n', 679: ' except:\n', 680: " print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) \n", 681: ' \n', 682: ' # ---------------------------------------------------------------------------------------------\n', 683: ' # (2) INITIALIZE DEVICE \n', 684: ' # --------------------------------------------------------------------------------------------- \n', 685: " print('=' *33) \n", 686: " print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) \n", 687: " print('=' *33) \n", 688: ' try:\n', 689: ' device2zpu = init2zpu4xi() \n', 690: " print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) \n", 691: " # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 692: ' \n', 693: ' except:\n', 694: " print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) \n", 695: ' \n', 696: ' \n', 697: ' # ---------------------------------------------------------------------------------------------\n', 698: ' # (3) CREATE CONTEXT \n', 699: ' # --------------------------------------------------------------------------------------------- \n', 700: " print('=' *33) \n", 701: " print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) \n", 702: " print('=' *33) \n", 703: ' try:\n', 704: ' context2zpu = create2context4zpu() \n', 705: " print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) \n", 706: " # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 707: ' \n', 708: ' except:\n', 709: " print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) \n", 710: ' \n', 711: ' \n', 712: ' \n', 713: ' # ---------------------------------------------------------------------------------------------\n', 714: ' # (4) INITIALIZE TASK DICTIONARY \n', 715: ' # --------------------------------------------------------------------------------------------- \n', 716: ' task4set2sampler = {}\n', 717: ' \n', 718: ' \n', 719: ' # ---------------------------------------------------------------------------------------------\n', 720: ' # (5) DEFINE CONTEXT - REQUIRED \n', 721: ' # --------------------------------------------------------------------------------------------- \n', 722: " task4set2sampler ['CONTEXT'] = context2zpu \n", 723: ' \n', 724: ' \n', 725: ' # ---------------------------------------------------------------------------------------------\n', 726: ' # (6) DEFINE DEVICE - EXTRA \n', 727: ' # --------------------------------------------------------------------------------------------- \n', 728: " task4set2sampler ['DEVICE'] = device2zpu \n", 729: ' \n', 730: ' # ---------------------------------------------------------------------------------------------\n', 731: ' # (7) DEFINE PROPERTIES - NONE \n', 732: ' # --------------------------------------------------------------------------------------------- \n', 733: " task4set2sampler ['PROPERTIES'] = None \n", 734: ' \n', 735: ' \n', 736: ' # ---------------------------------------------------------------------------------------------\n', 737: ' # (8) DEFINE ERROR CODE - REQUIRED \n', 738: ' # --------------------------------------------------------------------------------------------- \n', 739: " task4set2sampler ['CODE2ERROR'] = 0 \n", 740: ' \n', 741: ' \n', 742: ' # ---------------------------------------------------------------------------------------------\n', 743: ' # (9) SET QUEUE - EXTRA \n', 744: ' # --------------------------------------------------------------------------------------------- \n', 745: " task4set2sampler ['QUEUE'] = None\n", 746: " print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 747: ' try: \n', 748: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 749: " print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) \n", 750: ' # queue4xi.Queue4Xi object at 0x0000000003B050F0\n', 751: ' \n', 752: ' except:\n', 753: " print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 754: ' \n', 755: ' \n', 756: ' # ---------------------------------------------------------------------------------------------\n', 757: ' # (10) SET PIPE - EXTRA \n', 758: ' # --------------------------------------------------------------------------------------------- \n', 759: " task4set2sampler ['PIPE'] = None\n", 760: " print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 761: ' try: \n', 762: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 763: " print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) \n", 764: ' # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) \n', 765: ' \n', 766: ' except:\n', 767: " print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) \n", 768: ' \n', 769: ' \n', 770: ' # ---------------------------------------------------------------------------------------------\n', 771: ' # (11) SET REST \n', 772: ' # --------------------------------------------------------------------------------------------- \n', 773: " task4set2sampler ['COMMANDQUEUE'] = None\n", 774: " print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 775: ' try: \n', 776: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 777: " print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 778: ' # \n', 779: " task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' \n", 780: " print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) \n", 781: ' # \n', 782: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' \n", 783: " print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 784: ' #\n', 785: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' \n", 786: " print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 787: ' # \n', 788: ' \n', 789: ' except:\n', 790: " print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) \n", 791: ' \n', 792: '\n', 793: ' \n', 794: ' # ---------------------------------------------------------------------------------------------\n', 795: ' # (11) SET SAMPLER - FINALLY! \n', 796: ' # --------------------------------------------------------------------------------------------- \n', 797: ' response4set2sampler = {} \n', 798: " print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) \n", 799: ' try: \n', 800: ' response4set2sampler = set2sampler4zpu(task4set2sampler) \n', 801: ' \n', 802: ' keys2response = response4set2sampler.keys()\n', 803: ' for key2response in sorted(keys2response):\n', 804: " print(key2response, ' : ', response4set2sampler[key2response])\n", 805: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B-\n', 806: ' # ADDRESSINGMODE : CL_ADDRESS_REPEAT\n', 807: " # BUFFER : {'CODE2ERROR': 0 ...\n", 808: ' # CODE2ERROR : 0\n', 809: " # COMMANDQUEUE : {'CODE2ERROR': 0, ...\n", 810: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 811: ' # COUNT2REFERENCE : 1\n', 812: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 22:37:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 813: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ...\n", 814: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ...\n", 815: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 816: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8\n', 817: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1-\n', 818: ' # NORMALIZATION : CL_TRUE\n', 819: ' # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524)\n', 820: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 821: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00\n', 822: ' \n', 823: ' \n', 824: ' except:\n', 825: " print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) \n", 826: ' \n', 827: ' \n', 828: ' # ---------------------------------------------------------------------------------------------\n', 829: ' # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 \n', 830: ' # --------------------------------------------------------------------------------------------- \n', 831: ' \n', 832: ' task4release2sampler = {} \n', 833: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 834: ' response4release2sampler = {}\n', 835: ' \n', 836: " print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 837: ' # \n', 838: ' try: \n', 839: ' response4release2sampler = release2sampler4zpu(task4release2sampler) \n', 840: ' \n', 841: ' keys2response = response4release2sampler.keys()\n', 842: ' for key2response in sorted(keys2response):\n', 843: " print(key2response, ' : ', response4release2sampler[key2response])\n", 844: ' # COUNT2REFERENCE : 0\n', 845: ' \n', 846: ' except:\n', 847: " print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 848: ' \n', 849: ' task4getinfo2sampler = {}\n', 850: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 851: ' \n', 852: " print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 853: ' # \n', 854: ' try: \n', 855: ' response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) \n', 856: ' keys2response = response4getinfo2sampler.keys()\n', 857: ' \n', 858: ' for key2response in sorted(keys2response):\n', 859: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 860: ' # COUNT2REFERENCE : 0\n', 861: ' \n', 862: ' except:\n', 863: " print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 864: ' \n', 865: ' \n', 866: ' # ---------------------------------------------------------------------------------------------\n', 867: ' # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 \n', 868: ' # --------------------------------------------------------------------------------------------- \n', 869: ' task4retain2sampler = {}\n', 870: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 871: ' response4retain2sampler = {}\n', 872: " print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 873: ' try: \n', 874: ' response4retain2sampler = retain2sampler4zpu(task4retain2sampler) \n', 875: ' \n', 876: ' keys2response = response4retain2sampler.keys()\n', 877: ' for key2response in sorted(keys2response):\n', 878: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 879: ' # COUNT2REFERENCE : 1\n', 880: ' \n', 881: ' except:\n', 882: " print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 883: ' \n', 884: ' \n', 885: ' \n', 886: ' # ---------------------------------------------------------------------------------------------\n', 887: ' # (14) SAMPLER CALLBACK \n', 888: ' # --------------------------------------------------------------------------------------------- \n', 889: ' \n', 890: " print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 891: ' try: \n', 892: ' response4setcallback2sampler = set2samplercallback4zpu() \n', 893: " print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) \n", 894: ' # function trace2sampler4zpu at 0x00000000039676C8\n', 895: ' except:\n', 896: " print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) \n", 897: ' \n', 898: ' \n', 899: ' # ---------------------------------------------------------------------------------------------\n', 900: ' # PHASE I: TRACE FUNCTION TESTS \n', 901: ' # --------------------------------------------------------------------------------------------- \n', 902: " print('=' *33) \n", 903: " print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 904: " print('=' *33) \n", 905: ' trace2zpu = None\n', 906: ' try:\n', 907: ' trace2zpu = trace2sampler4zpu() \n', 908: " print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 909: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'} \n", 910: ' \n', 911: ' except:\n', 912: " print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 913: ' \n', 914: ' \n', 915: ' \n', 916: ' # ---------------------------------------------------------------------------------------------\n', 917: ' # PHASE II: CLASS TESTS \n', 918: ' # ---------------------------------------------------------------------------------------------\n', 919: " print('=' *33) \n", 920: " print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) \n", 921: " print('=' *33) \n", 922: ' # \n', 923: ' try:\n', 924: ' # ---------------------------------------------------------------------------------------------\n', 925: ' # CREATE WITH OBJECT \n', 926: ' # --------------------------------------------------------------------------------------------- \n', 927: ' samplerobject2zpu = ZPU2Sampler4Xi()\n', 928: " print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) \n", 929: ' # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320\n', 930: ' \n', 931: ' except:\n', 932: " print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT')\n", 933: ' \n', 934: ' # ---------------------------------------------------------------------------------------------\n', 935: ' # PHASE II: CLASS TESTS - GET METHOD \n', 936: ' # --------------------------------------------------------------------------------------------- \n', 937: " print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) \n", 938: ' try: \n', 939: ' response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() \n', 940: ' \n', 941: ' keys2response = response4get2samplerinfo.keys()\n', 942: ' for key2response in sorted(keys2response):\n', 943: " print(key2response, ' : ', response4get2samplerinfo[key2response])\n", 944: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 945: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 946: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ...\n", 947: ' # CODE2ERROR : 0\n', 948: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 949: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 950: ' # COUNT2REFERENCE : 1\n', 951: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 952: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 953: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', \n", 954: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 955: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 956: ' # NACK2RETURN : \n', 957: ' # NORMALIZATION : CL_TRUE\n', 958: ' # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416)\n', 959: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 960: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98\n', 961: ' # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time\n', 962: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 963: ' # COUNT2REFERENCE : 1\n', 964: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 965: ' # NORMALIZATION : CL_TRUE\n', 966: ' \n', 967: ' except:\n', 968: " print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) \n", 969: ' \n', 970: ' task4getinfo2sampler = {}\n', 971: " task4getinfo2sampler ['NORMALIZATION'] = 0\n", 972: " task4getinfo2sampler ['ADDRESSINGMODE'] = 0\n", 973: " task4getinfo2sampler ['FILTERINGMODE'] = 0\n", 974: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 975: ' response4getinfo2sampler = {}\n', 976: " print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 977: ' # \n', 978: ' try: \n', 979: ' response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) \n', 980: ' keys2response = response4getinfo2sampler.keys()\n', 981: ' \n', 982: ' for key2response in sorted(keys2response):\n', 983: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 984: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 985: ' # COUNT2REFERENCE : 1\n', 986: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 987: ' # NORMALIZATION : CL_TRUE \n', 988: ' \n', 989: ' except:\n', 990: " print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 991: ' \n', 992: ' \n', 993: ' # ---------------------------------------------------------------------------------------------\n', 994: ' # PHASE II: CLASS TESTS - SET METHOD \n', 995: ' # --------------------------------------------------------------------------------------------- \n', 996: " print('=' *33) \n", 997: " print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi())\n", 998: " print('=' *33) \n", 999: ' # \n', 1000: ' \n', 1001: ' # ---------------------------------------------------------------------------------------------\n', 1002: ' # (4) INITIALIZE TASK DICTIONARY \n', 1003: ' # --------------------------------------------------------------------------------------------- \n', 1004: ' task4set2sampler = {}\n', 1005: ' \n', 1006: ' \n', 1007: ' # ---------------------------------------------------------------------------------------------\n', 1008: ' # (5) DEFINE CONTEXT - REQUIRED \n', 1009: ' # --------------------------------------------------------------------------------------------- \n', 1010: ' \n', 1011: " task4set2sampler ['CONTEXT'] = context2zpu \n", 1012: ' \n', 1013: ' \n', 1014: ' # ---------------------------------------------------------------------------------------------\n', 1015: ' # (6) DEFINE DEVICE - EXTRA \n', 1016: ' # --------------------------------------------------------------------------------------------- \n', 1017: ' \n', 1018: " task4set2sampler ['DEVICE'] = device2zpu \n", 1019: ' \n', 1020: ' \n', 1021: ' # ---------------------------------------------------------------------------------------------\n', 1022: ' # (7) DEFINE ERROR CODE - REQUIRED \n', 1023: ' # --------------------------------------------------------------------------------------------- \n', 1024: " task4set2sampler ['CODE2ERROR'] = 0 \n", 1025: ' \n', 1026: ' \n', 1027: ' # ---------------------------------------------------------------------------------------------\n', 1028: ' # (8) QUEUE - EXTRA \n', 1029: ' # --------------------------------------------------------------------------------------------- \n', 1030: " print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) \n", 1031: " task4set2sampler ['QUEUE'] = None\n", 1032: ' try:\n', 1033: " task4set2sampler ['QUEUE'] = Queue4Xi() \n", 1034: " print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) \n", 1035: ' # queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1036: ' \n', 1037: ' except:\n', 1038: " print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) \n", 1039: ' \n', 1040: ' # ---------------------------------------------------------------------------------------------\n', 1041: ' # (9) PIPE \n', 1042: ' # --------------------------------------------------------------------------------------------- \n', 1043: " print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) \n", 1044: " task4set2sampler ['PIPE'] = None\n", 1045: ' try:\n', 1046: " task4set2sampler ['PIPE'] = Pipe4Xi() \n", 1047: " print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE'])\n", 1048: ' # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1049: ' \n', 1050: ' except:\n', 1051: " print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) \n", 1052: ' \n', 1053: ' # ---------------------------------------------------------------------------------------------\n', 1054: ' # (10) SET COMMAND QUEUE - EXTRA \n', 1055: ' # --------------------------------------------------------------------------------------------- \n', 1056: " task4set2sampler ['COMMANDQUEUE'] = None\n", 1057: " print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) \n", 1058: ' try: \n', 1059: " task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() \n", 1060: " print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) \n", 1061: " # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1062: ' \n', 1063: ' \n', 1064: ' except:\n', 1065: " print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi())\n", 1066: ' \n', 1067: ' # ---------------------------------------------------------------------------------------------\n', 1068: ' # (11) SET ADDRESSINGMODE - EXTRA \n', 1069: ' # --------------------------------------------------------------------------------------------- \n', 1070: ' \n', 1071: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1072: ' try: \n', 1073: " task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' \n", 1074: " print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) \n", 1075: ' # CL_ADDRESS_CLAMP_TO_EDGE\n', 1076: ' \n', 1077: ' \n', 1078: ' except:\n', 1079: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1080: ' \n', 1081: ' \n', 1082: ' # ---------------------------------------------------------------------------------------------\n', 1083: ' # (12) SET FILTERINGMODE - EXTRA \n', 1084: ' # --------------------------------------------------------------------------------------------- \n', 1085: ' \n', 1086: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) \n", 1087: ' try: \n', 1088: " task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' \n", 1089: " print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) \n", 1090: ' # CL_FILTER_LINEAR\n', 1091: ' \n', 1092: ' \n', 1093: ' except:\n', 1094: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) \n", 1095: ' \n', 1096: ' \n', 1097: ' \n', 1098: ' # ---------------------------------------------------------------------------------------------\n', 1099: ' # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD \n', 1100: ' # --------------------------------------------------------------------------------------------- \n', 1101: " print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1102: ' try: \n', 1103: ' response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) \n', 1104: ' keys2response = response4set2sampler.keys()\n', 1105: ' for key2response in sorted(keys2response):\n', 1106: " print(key2response, ' : ', response4set2sampler[key2response])\n", 1107: ' # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B-\n', 1108: ' # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE\n', 1109: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1110: ' # CODE2ERROR : 0\n', 1111: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1112: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1113: ' # COUNT2REFERENCE : 1\n', 1114: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1115: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318\n", 1116: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1117: ' # FILTERINGMODE : CL_FILTER_LINEAR\n', 1118: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1119: ' # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1-\n', 1120: ' # NORMALIZATION : CL_TRUE\n', 1121: ' # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384)\n', 1122: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1123: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00\n', 1124: ' \n', 1125: ' except:\n', 1126: " print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) \n", 1127: ' \n', 1128: ' \n', 1129: ' \n', 1130: ' # ---------------------------------------------------------------------------------------------\n', 1131: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER \n', 1132: ' # --------------------------------------------------------------------------------------------- \n', 1133: " print('=' *33) \n", 1134: " print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) \n", 1135: " print('=' *33) \n", 1136: ' # \n', 1137: ' task4release2sampler = {}\n', 1138: " task4release2sampler ['COUNT2REFERENCE'] = 1\n", 1139: ' try:\n', 1140: ' response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler)\n', 1141: ' keys2response = response4release2sampler.keys()\n', 1142: ' \n', 1143: ' for key2response in sorted(keys2response):\n', 1144: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1145: ' # COUNT2REFERENCE : 0\n', 1146: ' \n', 1147: ' except:\n', 1148: " print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) \n", 1149: ' \n', 1150: ' \n', 1151: ' # ---------------------------------------------------------------------------------------------\n', 1152: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER \n', 1153: ' # --------------------------------------------------------------------------------------------- \n', 1154: " print('=' *33) \n", 1155: " print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi())\n", 1156: " print('=' *33) \n", 1157: ' task4retain2sampler = {}\n', 1158: " task4retain2sampler ['COUNT2REFERENCE'] = 1\n", 1159: ' try:\n', 1160: ' response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler)\n', 1161: ' keys2response = response4retain2sampler.keys()\n', 1162: ' for key2response in sorted(keys2response):\n', 1163: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1164: ' # COUNT2REFERENCE : 1\n', 1165: ' \n', 1166: ' except:\n', 1167: " print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi())\n", 1168: ' \n', 1169: ' # ---------------------------------------------------------------------------------------------\n', 1170: ' # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD \n', 1171: ' # --------------------------------------------------------------------------------------------- \n', 1172: " print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1173: ' # \n', 1174: ' try:\n', 1175: ' xi2zpu = ZPU2Sampler4Xi() \n', 1176: ' response4create2sampler = xi2zpu.create2sampler() \n', 1177: ' keys2response = response4create2sampler.keys()\n', 1178: ' for key2response in sorted(keys2response):\n', 1179: " print(key2response, ' : ', response4create2sampler[key2response])\n", 1180: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 1181: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 1182: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1183: ' # CODE2ERROR : 0\n', 1184: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0\n", 1185: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': \n", 1186: ' # COUNT2REFERENCE : 1\n', 1187: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'create2sampler4zpu', 'METHOD': 'create2sampler4zpu'}\n", 1188: " # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568'\n", 1189: " # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': \n", 1190: ' # FILTERINGMODE : CL_FILTER_NEAREST\n', 1191: ' # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8\n', 1192: ' # NACK2RETURN : \n', 1193: ' # NORMALIZATION : CL_TRUE\n', 1194: ' # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424)\n', 1195: " # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1}\n", 1196: ' # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48\n', 1197: ' \n', 1198: ' except:\n', 1199: " print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) \n", 1200: ' \n', 1201: ' # ---------------------------------------------------------------------------------------------\n', 1202: ' # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD \n', 1203: ' # --------------------------------------------------------------------------------------------- \n', 1204: " print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) \n", 1205: ' # \n', 1206: ' try:\n', 1207: ' \n', 1208: ' callback2zpu = xi2zpu.set2samplercallback() \n', 1209: " print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu)\n", 1210: ' # function trace2sampler4zpu at 0x00000000039676C8 \n', 1211: ' \n', 1212: ' except:\n', 1213: " print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) \n", 1214: ' \n', 1215: ' \n', 1216: ' # ---------------------------------------------------------------------------------------------\n', 1217: ' # PHASE II: CLASS TESTS - TRACE SAMPLERS \n', 1218: ' # --------------------------------------------------------------------------------------------- \n', 1219: " print('=' *33) \n", 1220: " print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) \n", 1221: " print('=' *33) \n", 1222: ' # \n', 1223: ' \n', 1224: ' trace2zpu = None\n', 1225: ' try:\n', 1226: ' trace2zpu = xi2zpu.trace2sampler() \n', 1227: ' \n', 1228: " print('=' *33) \n", 1229: " print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) \n", 1230: " # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {}; time: 04:32:25 11/07/11 Pacific Standard Time}', 'CLASS': 'trace2sampler4zpu', 'METHOD': 'trace2sampler4zpu'}\n", 1231: ' \n', 1232: ' \n', 1233: " print('=' *33)\n", 1234: ' except:\n', 1235: " print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) \n", 1236: ' \n', 1237: ' \n', 1238: ' \n', 1239: ' # ---------------------------------------------------------------------------------------------\n', 1240: ' # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 \n', 1241: ' # --------------------------------------------------------------------------------------------- \n', 1242: ' task4release2sampler = {} \n', 1243: " task4release2sampler ['COUNT2REFERENCE'] = 1 \n", 1244: ' response4release2sampler = {}\n', 1245: ' \n', 1246: " print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1247: ' # \n', 1248: ' try: \n', 1249: ' response4release2sampler = xi2zpu.release2sampler(task4release2sampler) \n', 1250: ' \n', 1251: ' keys2response = response4release2sampler.keys()\n', 1252: ' for key2response in sorted(keys2response):\n', 1253: " print(key2response, ' : ', response4release2sampler[key2response])\n", 1254: ' # COUNT2REFERENCE : 0\n', 1255: ' except:\n', 1256: " print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1257: ' \n', 1258: ' task4getinfo2sampler = {}\n', 1259: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1260: ' response4getinfo2sampler = {}\n', 1261: " print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1262: ' # \n', 1263: ' try: \n', 1264: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1265: ' keys2response = response4getinfo2sampler.keys()\n', 1266: ' \n', 1267: ' for key2response in sorted(keys2response):\n', 1268: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1269: ' # COUNT2REFERENCE : 0\n', 1270: ' except:\n', 1271: " print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1272: ' \n', 1273: ' \n', 1274: ' # ---------------------------------------------------------------------------------------------\n', 1275: ' # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 \n', 1276: ' # --------------------------------------------------------------------------------------------- \n', 1277: ' task4retain2sampler = {}\n', 1278: " task4retain2sampler ['COUNT2REFERENCE'] = 1 \n", 1279: ' response4retain2sampler = {}\n', 1280: " print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) \n", 1281: ' try: \n', 1282: ' response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) \n', 1283: ' \n', 1284: ' keys2response = response4retain2sampler.keys()\n', 1285: ' for key2response in sorted(keys2response):\n', 1286: " print(key2response, ' : ', response4retain2sampler[key2response])\n", 1287: ' # COUNT2REFERENCE : 1\n', 1288: ' except:\n', 1289: " print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi())\n", 1290: ' \n', 1291: ' task4getinfo2sampler = {}\n', 1292: " task4getinfo2sampler ['COUNT2REFERENCE'] = 0\n", 1293: ' response4getinfo2sampler = {}\n', 1294: " print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1295: ' # \n', 1296: ' try: \n', 1297: ' response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) \n', 1298: ' keys2response = response4getinfo2sampler.keys()\n', 1299: ' \n', 1300: ' for key2response in sorted(keys2response):\n', 1301: " print(key2response, ' : ', response4getinfo2sampler[key2response])\n", 1302: ' # COUNT2REFERENCE : 1\n', 1303: ' \n', 1304: ' except:\n', 1305: " print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) \n", 1306: ' \n', 1307: ' # ---------------------------------------------------------------------------------------------\n', 1308: ' # PHASE II: CLASS TESTS - SENSE SAMPLER \n', 1309: ' # --------------------------------------------------------------------------------------------- \n', 1310: " print('=' *33) \n", 1311: " print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) \n", 1312: " print('=' *33) \n", 1313: ' \n', 1314: ' try:\n', 1315: ' print(xi2zpu.sense())\n', 1316: ' \n', 1317: " print('=' *33) \n", 1318: " print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) \n", 1319: " # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98}\n", 1320: ' \n', 1321: " print('=' *33)\n", 1322: ' except:\n', 1323: " print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) \n", 1324: ' \n', 1325: ' # ---------------------------------------------------------------------------------------------\n', 1326: ' # PHASE II: CLASS TESTS - REASON SAMPLER \n', 1327: ' # --------------------------------------------------------------------------------------------- \n', 1328: " print('=' *33) \n", 1329: " print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi())\n", 1330: " print('=' *33) \n", 1331: ' \n', 1332: ' try:\n', 1333: ' print(xi2zpu.reason())\n', 1334: ' \n', 1335: " print('=' *33) \n", 1336: " print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi())\n", 1337: " # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'}\n", 1338: ' \n', 1339: " print('=' *33) \n", 1340: ' except:\n', 1341: " print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) \n", 1342: ' \n', 1343: ' # ---------------------------------------------------------------------------------------------\n', 1344: ' # PHASE II: CLASS TESTS - ACE SAMPLER \n', 1345: ' # --------------------------------------------------------------------------------------------- \n', 1346: " print('=' *33) \n", 1347: " print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) \n", 1348: " print('=' *33) \n", 1349: ' \n', 1350: ' try:\n', 1351: ' print(xi2zpu.ace())\n', 1352: ' \n', 1353: " print('=' *33) \n", 1354: " print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) \n", 1355: " # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} \n", 1356: ' \n', 1357: " print('=' *33) \n", 1358: ' except:\n', 1359: " print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) \n", 1360: ' \n', 1361: ' # ---------------------------------------------------------------------------------------------\n', 1362: ' # DONE - ALL TESTS \n', 1363: ' # --------------------------------------------------------------------------------------------- \n', 1364: " print('=' *33) \n", 1365: " print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi())\n", 1366: ' # \n', 1367: " print('=' *33) \n", 1368: ' except:\n', 1369: " print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi())\n", 1370: ' finally: \n', 1371: ' # --------------------------------------------------------------------------------------------- \n', 1372: ' # Print Trace\n', 1373: ' # --------------------------------------------------------------------------------------------- \n', 1374: ' print2trace4xi(t2xi) \n', 1375: ' \n', 1376: ' \n', 1377: '#/function4xi \n', 1378: ' \n', 1379: '# -------------------------------------------------------------------------------------------------\n', 1380: '#function4xi function = "main" usage = "\n', 1381: '# main function for zpu2sampler4xi5test\n', 1382: '#" \n', 1383: '# ------------------------------------------------------------------------------------------------- \n', 1384: 'def main():\n', 1385: ' \n', 1386: " print('=' *33)\n", 1387: ' print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) \n', 1388: ' # \n', 1389: " print('=' *33)\n", 1390: ' \n', 1391: ' zpu2sampler4xi5test() \n', 1392: ' \n', 1393: " print('=' *33)\n", 1394: ' print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) \n', 1395: ' # \n', 1396: ' \n', 1397: " print('=' *33) \n", 1398: ' \n', 1399: '#/function4xi\n', 1400: ' \n', 1401: '\n', 1402: '# -------------------------------------------------------------------------------------------------\n', 1403: '# __main__ \n', 1404: '# -------------------------------------------------------------------------------------------------\n', 1405: "if __name__ == '__main__':\n", 1406: ' main()\n', 1407: '#/program4xi\n', 1408: ' \n', 1409: '\n', 1410: '# -------------------------------------------------------------------------------------------------\n', 1411: '# Recorded History \n', 1412: '# ------------------------------------------------------------------------------------------------- \n', 1413: '#record4xi record = "\n', 1414: '# zpu2sampler4xi5test.txt\n', 1415: '# sense-zpu2sampler4xi5test.xml\n', 1416: '# reason-zpu2sampler4xi5test.xml\n', 1417: '# ace-zpu2sampler4xi5test.xml\n', 1418: '#" \n', 1419: '#\n', 1420: '\n', 1421: '#acknowledge4xi acknowledgement = "33" tester = "Small Smart"/\n', 1422: '\n', 1423: '# -------------------------------------------------------------------------------------------------\n', 1424: '# to-be-done \n', 1425: '# ------------------------------------------------------------------------------------------------- \n', 1426: '#do4xi do = "\n', 1427: '# nothing\n', 1428: '#"\n', 1429: '#/\n', 1430: '\n', 1431: '#note4xi note = "\n', 1432: '# parse4xi.py - to parse this module\n', 1433: '# "/\n', 1434: '\n', 1435: '# -------------------------------------------------------------------------------------------------\n', 1436: '# Legal Notice \n', 1437: '# ------------------------------------------------------------------------------------------------- \n', 1438: '#protect4xi protection = "copyright"\n', 1439: '# owner = "Small Smart"\n', 1440: '# rights = "All rights reserved"\n', 1441: '# state = "California"\n', 1442: '# country = "United States of America"\n', 1443: '# codes = "Codes established in California and applicable to corporations in California"\n', 1444: '# compliance = "The California Law"\n', 1445: '# court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783"\n', 1446: '#/\n', 1447: '\n', 1448: '#end4xi end = "\n', 1449: '# -------------------------------------------------------------------------------------------------\n', 1450: '# end of zpu2sampler4xi5test.py \n', 1451: '# ------------------------------------------------------------------------------------------------- \n', 1452: '#"\n', 1453: '#/ \n'}}; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 34A/70) try; size-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 35A/70) try; language-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 36A/70) try; count2reference-try-by-create2programwithsource4zpu: None; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 3A/70) trying; context2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 4A/70) trying; device2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 6A/70) trying; queue2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 7A/70) trying; pipe2zpu-trying-by-create2programwithsource4zpu: None; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 8A/70) trying; commandqueueinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 9A/70) trying; bufferinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 10A/70) trying; eventinfo2zpu-trying-by-create2programwithsource4zpu: {}; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 11A/70) trying; count2zpu-trying-by-create2programwithsource4zpu: 0; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 14A/70) using; DirectoryWalker-using-by-create2programwithsource4zpu: class 'zpu2program4xi.DirectoryWalker'; time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: create2programwithsource4zpucreate2programwithsource4zpu{(Step 19A/70) using; keys2task-using-by-create2programwithsource4zpu: ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE']; time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:48 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 02/18/15 FLE Standard Time} xml_trace_reason4xi: writing: fetch2programsource4zpufetch2programsource4zpu{(Step 0B/33) using; keys2profile4source-using-by-fetch2programsource4zpu: dict_keys(['.c', '.py', '.cpp', '.cl']); time: 08:41:49 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:41:50 02/18/15 FLE Standard Time --------------------------------- (STEP 8B/33) OF XML_TRACE_REASON4XI - CREATED END FOR XML FILE 08:41:50 02/18/15 FLE Standard Time --------------------------------- (STEP 33/33) OF XML_TRACE_REASON4XI - CLOSED XML FILE 08:41:50 02/18/15 FLE Standard Time --------------------------------- ================================= xml_trace_ace4xi: ACING ================================= --------------------------------- xml_trace_ace4xi: Input from Print4Xi ace method --------------------------------- xml_trace_ace4xi: set c2xi to: {'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl">\n', 'class0_id4xi': ' \n', 'object_property_comment4xi': ' 000000\n', 'ontology_about4xi': ' \n', 'debug4xi': True, 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-zpu2program4xi5test.xml', 'class0_comment4xi': ' Objects and values of Program of ZPU.\n', 'ontology_comment4xi': ' Objects and values for Program of ZPU.\n', 'object_property_rdf4xi': ' \n', 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n'} DirectoryWalker-using-by-create2programwithsource4zpu#000000026 class 'zpu2program4xi.DirectoryWalker' args2callback-created-by-create2programwithsource4zpu#000000005 {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed bufferinfo-created-by-create2programwithsource4zpu#000002335 {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed bufferinfo-try-by-create2programwithsource4zpu#000002334 {} bufferinfo2zpu-got-by-create2programwithsource4zpu#000000020 {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed bufferinfo2zpu-trying-by-create2programwithsource4zpu#000000019 {} code-created-by-create2programwithsource4zpu#000002344 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed code2error-created-by-create2programwithsource4zpu#000002327 0 code2error-try-by-create2programwithsource4zpu#000002326 None codetask-try-by-create2programwithsource4zpu#000002343 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed commandqueue-created-by-create2programwithsource4zpu#000002333 {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed commandqueue-try-by-create2programwithsource4zpu#000002332 {} commandqueueinfo2zpu-got-by-create2programwithsource4zpu#000000018 {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed commandqueueinfo2zpu-trying-by-create2programwithsource4zpu#000000017 {} context-created-by-create2programwithsource4zpu#000002323 {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed context2zpu-got-by-create2programwithsource4zpu#000000010 {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed context2zpu-try-by-create2programwithsource4zpu#000002322 {} context2zpu-trying-by-create2programwithsource4zpu#000000009 {} count-created-by-create2programwithsource4zpu#000002340 2 count-try-by-create2programwithsource4zpu#000002339 2 count2reference-created-by-create2programwithsource4zpu#000002350 1 count2reference-try-by-create2programwithsource4zpu#000002349 None count2reference2zpu-set-by-create2programwithbinary4zpu#000002313 1 count2zpu-set-by-create2programwithsource4zpu#000000024 2 count2zpu-trying-by-create2programwithsource4zpu#000000023 0 create2programwithsource4zpu-started#000000001 function create2programwithsource4zpu at 0x02EA5C00 data2callback-created-by-create2programwithsource4zpu#000002317 {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed data2callback-try-by-create2programwithsource4zpu#000002316 {} device-created-by-create2programwithsource4zpu#000002325 {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'} device-try-by-create2programwithsource4zpu#000002324 {} device2zpu-got-by-create2programwithsource4zpu#000000012 {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'} device2zpu-trying-by-create2programwithsource4zpu#000000011 {} dir2zpu-set-by-create2programwithsource4zpu#000000025 e://scope4xi//041721//zap//lib//z// directory-created-by-create2programwithsource4zpu#000002342 e://scope4xi//041721//zap//lib//z// directory-examining-by-create2programwithsource4zpu#000000027 e://scope4xi//041721//zap//lib//z//bin directory-examining-by-create2programwithsource4zpu#000002178 e://scope4xi//041721//zap//lib//z//__pycache__ directory-try-by-create2programwithsource4zpu#000002341 None eventinfo-created-by-create2programwithsource4zpu#000002337 {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed eventinfo-try-by-create2programwithsource4zpu#000002336 {} eventinfo2zpu-got-by-create2programwithsource4zpu#000000022 {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed eventinfo2zpu-trying-by-create2programwithsource4zpu#000000021 {} extension-skipped-by-fetch2programsource4zpu#000000034 html extension-skipped-by-fetch2programsource4zpu#000000060 txt extension-skipped-by-fetch2programsource4zpu#000002185 pyc extension-skipped-by-fetch2programsource4zpu#000002196 pyc extension-skipped-by-fetch2programsource4zpu#000002207 pyc extension-skipped-by-fetch2programsource4zpu#000002218 pyc extension-skipped-by-fetch2programsource4zpu#000002229 pyc extension-skipped-by-fetch2programsource4zpu#000002240 pyc extension-skipped-by-fetch2programsource4zpu#000002251 pyc extension-skipped-by-fetch2programsource4zpu#000002262 pyc extension-skipped-by-fetch2programsource4zpu#000002273 pyc extension-skipped-by-fetch2programsource4zpu#000002284 pyc extension-skipped-by-fetch2programsource4zpu#000002295 pyc extension-skipped-by-fetch2programsource4zpu#000002306 pyc fetch2code4source-got-by-create2programwithsource4zpu#000000038 {} fetch2code4source-got-by-create2programwithsource4zpu#000000053 {} fetch2code4source-got-by-create2programwithsource4zpu#000000064 {} fetch2code4source-got-by-create2programwithsource4zpu#000000079 {} fetch2code4source-got-by-create2programwithsource4zpu#000000094 {} fetch2code4source-got-by-create2programwithsource4zpu#000000109 {} fetch2code4source-got-by-create2programwithsource4zpu#000000124 {} fetch2code4source-got-by-create2programwithsource4zpu#000000139 {} fetch2code4source-got-by-create2programwithsource4zpu#000000154 {} fetch2code4source-got-by-create2programwithsource4zpu#000000169 {} fetch2code4source-got-by-create2programwithsource4zpu#000000184 {} fetch2code4source-got-by-create2programwithsource4zpu#000000540 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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-create2programwithsource4zpu#000000555 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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-create2programwithsource4zpu#000000570 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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-create2programwithsource4zpu#000000585 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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-create2programwithsource4zpu#000000600 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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-create2programwithsource4zpu#000000615 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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-create2programwithsource4zpu#000000630 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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-create2programwithsource4zpu#000000645 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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-create2programwithsource4zpu#000000660 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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-create2programwithsource4zpu#000000675 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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-create2programwithsource4zpu#000002147 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002162 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002177 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002189 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002200 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002211 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002222 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002233 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002244 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002255 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002266 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002277 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002288 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002299 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-got-by-create2programwithsource4zpu#000002310 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2code4source-saved-by-fetch2programsource4zpu#000000536 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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-fetch2programsource4zpu#000002141 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000029 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000040 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000055 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000066 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000081 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000096 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000111 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000126 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000141 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000156 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000171 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000186 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000542 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000557 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000572 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000587 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000602 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000617 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000632 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000647 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000662 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000000677 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002149 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002164 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002180 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002191 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002202 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002213 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002224 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002235 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002246 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002257 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002268 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002279 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002290 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-calling-by-create2programwithsource4zpu#000002301 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000037 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000052 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000063 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000078 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000093 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000108 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000123 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000138 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000153 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000168 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000183 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000539 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000554 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000569 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000584 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000599 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000614 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000629 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000644 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000659 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000000674 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002146 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002161 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002176 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002188 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002199 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002210 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002221 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002232 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002243 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002254 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002265 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002276 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002287 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002298 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-performed-by-create2programwithsource4zpu#000002309 function fetch2programsource4zpu at 0x02EA5DF8 fetch2programsource4zpu-returning#000000035 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000036 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000051 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000061 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000062 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000077 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000092 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000107 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000122 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000137 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000152 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000167 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000182 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000538 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000553 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000568 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000583 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000598 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000613 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000628 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000643 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000658 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000000673 08:41:48 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002145 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002160 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002175 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002186 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002187 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002197 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002198 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002208 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002209 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002219 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002220 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002230 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002231 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002241 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002242 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002252 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002253 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002263 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002264 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002274 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002275 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002285 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002286 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002296 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002297 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002307 08:41:49 02/18/15 FLE Standard Time fetch2programsource4zpu-returning#000002308 08:41:49 02/18/15 FLE Standard Time file-examining-by-create2programwithsource4zpu#000000028 e://scope4xi//041721//zap//lib//z//index.html file-examining-by-create2programwithsource4zpu#000000039 e://scope4xi//041721//zap//lib//z//version4xi.py file-examining-by-create2programwithsource4zpu#000000054 e://scope4xi//041721//zap//lib//z//z2scope4xi.txt file-examining-by-create2programwithsource4zpu#000000065 e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py file-examining-by-create2programwithsource4zpu#000000080 e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py file-examining-by-create2programwithsource4zpu#000000095 e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py file-examining-by-create2programwithsource4zpu#000000110 e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py file-examining-by-create2programwithsource4zpu#000000125 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py file-examining-by-create2programwithsource4zpu#000000140 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py file-examining-by-create2programwithsource4zpu#000000155 e://scope4xi//041721//zap//lib//z//zpu2context4xi.py file-examining-by-create2programwithsource4zpu#000000170 e://scope4xi//041721//zap//lib//z//zpu2device4xi.py file-examining-by-create2programwithsource4zpu#000000185 e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp file-examining-by-create2programwithsource4zpu#000000541 e://scope4xi//041721//zap//lib//z//zpu2event4xi.py file-examining-by-create2programwithsource4zpu#000000556 e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py file-examining-by-create2programwithsource4zpu#000000571 e://scope4xi//041721//zap//lib//z//zpu2image4xi.py file-examining-by-create2programwithsource4zpu#000000586 e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py file-examining-by-create2programwithsource4zpu#000000601 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py file-examining-by-create2programwithsource4zpu#000000616 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py file-examining-by-create2programwithsource4zpu#000000631 e://scope4xi//041721//zap//lib//z//zpu2program4xi.py file-examining-by-create2programwithsource4zpu#000000646 e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py file-examining-by-create2programwithsource4zpu#000000661 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py file-examining-by-create2programwithsource4zpu#000000676 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py file-examining-by-create2programwithsource4zpu#000002148 e://scope4xi//041721//zap//lib//z//zpu3image4xi.py file-examining-by-create2programwithsource4zpu#000002163 e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py file-examining-by-create2programwithsource4zpu#000002179 e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc file-examining-by-create2programwithsource4zpu#000002190 e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc file-examining-by-create2programwithsource4zpu#000002201 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc file-examining-by-create2programwithsource4zpu#000002212 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc file-examining-by-create2programwithsource4zpu#000002223 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc file-examining-by-create2programwithsource4zpu#000002234 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc file-examining-by-create2programwithsource4zpu#000002245 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc file-examining-by-create2programwithsource4zpu#000002256 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc file-examining-by-create2programwithsource4zpu#000002267 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc file-examining-by-create2programwithsource4zpu#000002278 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc file-examining-by-create2programwithsource4zpu#000002289 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc file-examining-by-create2programwithsource4zpu#000002300 e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc file2input4source-closed-by-fetch2programsource4zpu#000000535 _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252' file2input4source-closed-by-fetch2programsource4zpu#000002140 _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252' file2input4source-opened-by-fetch2programsource4zpu#000000196 _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252' file2input4source-opened-by-fetch2programsource4zpu#000000685 _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252' file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000030 e://scope4xi//041721//zap//lib//z//index.html file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000041 e://scope4xi//041721//zap//lib//z//version4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000056 e://scope4xi//041721//zap//lib//z//z2scope4xi.txt file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000067 e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000082 e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000097 e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000112 e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000127 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000142 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000157 e://scope4xi//041721//zap//lib//z//zpu2context4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000172 e://scope4xi//041721//zap//lib//z//zpu2device4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000187 e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000543 e://scope4xi//041721//zap//lib//z//zpu2event4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000558 e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000573 e://scope4xi//041721//zap//lib//z//zpu2image4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000588 e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000603 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000618 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000633 e://scope4xi//041721//zap//lib//z//zpu2program4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000648 e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000663 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000000678 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002150 e://scope4xi//041721//zap//lib//z//zpu3image4xi.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002165 e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002181 e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002192 e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002203 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002214 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002225 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002236 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002247 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002258 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002269 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002280 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002291 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc file2walk-passing-to-fetch2programsource4zpu-by-create2programwithsource4zpu#000002302 e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc function2callback-created-by-create2programwithsource4zpu#000002319 function trace2program4zpu at 0x02EA5AE0 function2callback-try-by-create2programwithsource4zpu#000002318 None function2callback4zpu-created-by-create2programwithsource4zpu#000000004 function trace2program4zpu at 0x02EA5AE0 key2fecth4source-saving-by-fetch2programsource4zpu#000000197 3 key2fecth4source-saving-by-fetch2programsource4zpu#000000686 1 key2program4zpu-returning-by-create2programwithsource4zpu#000002351 DIRECTORY4SOURCE key2program4zpu-returning-by-create2programwithsource4zpu#000002352 COMMANDQUEUE key2program4zpu-returning-by-create2programwithsource4zpu#000002353 CODE4SOURCE key2program4zpu-returning-by-create2programwithsource4zpu#000002354 NACK2RETURN key2program4zpu-returning-by-create2programwithsource4zpu#000002355 BUFFER key2program4zpu-returning-by-create2programwithsource4zpu#000002356 LANGUAGE4SOURCE key2program4zpu-returning-by-create2programwithsource4zpu#000002357 DATA2CALLBACK key2program4zpu-returning-by-create2programwithsource4zpu#000002358 PIPE key2program4zpu-returning-by-create2programwithsource4zpu#000002359 ACK2RETURN key2program4zpu-returning-by-create2programwithsource4zpu#000002360 COUNT4SOURCE key2program4zpu-returning-by-create2programwithsource4zpu#000002361 QUEUE key2program4zpu-returning-by-create2programwithsource4zpu#000002362 PLATFORM key2program4zpu-returning-by-create2programwithsource4zpu#000002363 EVENT key2program4zpu-returning-by-create2programwithsource4zpu#000002364 FUNCTION2CALLBACK key2program4zpu-returning-by-create2programwithsource4zpu#000002365 CONTEXT key2program4zpu-returning-by-create2programwithsource4zpu#000002366 SIZE4SOURCE key2program4zpu-returning-by-create2programwithsource4zpu#000002367 COUNT2REFERENCE key2program4zpu-returning-by-create2programwithsource4zpu#000002368 CODE2ERROR key2program4zpu-returning-by-create2programwithsource4zpu#000002369 DEVICE keys2profile4source-using-by-fetch2programsource4zpu#000000032 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000043 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000058 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000069 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000084 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000099 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000114 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000129 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000144 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000159 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000174 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000189 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000545 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000560 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000575 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000590 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000605 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000620 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000635 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000650 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000665 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000000680 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002152 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002167 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002183 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002194 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002205 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002216 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002227 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002238 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002249 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002260 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002271 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002282 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002293 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2profile4source-using-by-fetch2programsource4zpu#000002304 dict_keys(['.c', '.py', '.cpp', '.cl']) keys2task-using-by-create2programwithsource4zpu#000002314 ['BUFFER', 'CODE', 'CODE2ERROR', 'COMMANDQUEUE', 'CONTEXT', 'COUNT', 'COUNT2REFERENCE', 'DATA2CALLBACK', 'DEVICE', 'DIRECTORY', 'EVENT', 'FUNCTION2CALLBACK', 'LANGUAGE', 'PIPE', 'PLATFORM', 'QUEUE', 'SIZE'] language-created-by-create2programwithsource4zpu#000002348 Python language-try-by-create2programwithsource4zpu#000002347 None language2zpu-set-by-create2programwithsource4zpu#000002312 Python line2process4source-read-by-fetch2programsource4zpu#000000198 // ----------------------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000199 // zpu2dummy4xi5test.cpp line2process4source-read-by-fetch2programsource4zpu#000000200 // ----------------------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000201 #include stdlib.h line2process4source-read-by-fetch2programsource4zpu#000000202 #include stdio.h line2process4source-read-by-fetch2programsource4zpu#000000203 #include CL/opencl.h line2process4source-read-by-fetch2programsource4zpu#000000204 line2process4source-read-by-fetch2programsource4zpu#000000205 #define DEVID 0 line2process4source-read-by-fetch2programsource4zpu#000000206 #define DEVID2 1 line2process4source-read-by-fetch2programsource4zpu#000000207 line2process4source-read-by-fetch2programsource4zpu#000000208 // Program source line2process4source-read-by-fetch2programsource4zpu#000000209 const char* KernelSource = line2process4source-read-by-fetch2programsource4zpu#000000210 " __kernel void simple( __global float* A) { \n" line2process4source-read-by-fetch2programsource4zpu#000000211 " int tid = get_global_id(0); \n" line2process4source-read-by-fetch2programsource4zpu#000000212 " A[tid] = A[tid] + 5; \n" line2process4source-read-by-fetch2programsource4zpu#000000213 "} \n" line2process4source-read-by-fetch2programsource4zpu#000000214 " \n" line2process4source-read-by-fetch2programsource4zpu#000000215 "__kernel void simple2(__global float *A, int nLoops) { \n" line2process4source-read-by-fetch2programsource4zpu#000000216 " \n" line2process4source-read-by-fetch2programsource4zpu#000000217 " int tid = get_global_id(0); \n" line2process4source-read-by-fetch2programsource4zpu#000000218 " for (int i = 0; i nLoops; i++) { \n" line2process4source-read-by-fetch2programsource4zpu#000000219 " A[tid] = sqrt(A[tid]) + (0.5 * A[tid]) + log(A[tid]); \n" line2process4source-read-by-fetch2programsource4zpu#000000220 " } \n" line2process4source-read-by-fetch2programsource4zpu#000000221 "} \n" line2process4source-read-by-fetch2programsource4zpu#000000222 "__kernel void simple3(__global float *A, __global float *B, int entries) { \n" line2process4source-read-by-fetch2programsource4zpu#000000223 " \n" line2process4source-read-by-fetch2programsource4zpu#000000224 " int tid = get_global_id(0); \n" line2process4source-read-by-fetch2programsource4zpu#000000225 " if (tid entries) \n" line2process4source-read-by-fetch2programsource4zpu#000000226 " B[tid] = 2 * A[tid]; \n" line2process4source-read-by-fetch2programsource4zpu#000000227 " \n" line2process4source-read-by-fetch2programsource4zpu#000000228 "} \n"; line2process4source-read-by-fetch2programsource4zpu#000000229 line2process4source-read-by-fetch2programsource4zpu#000000230 line2process4source-read-by-fetch2programsource4zpu#000000231 // native kernel data structure line2process4source-read-by-fetch2programsource4zpu#000000232 struct myNativeKernelData { line2process4source-read-by-fetch2programsource4zpu#000000233 float *inData; line2process4source-read-by-fetch2programsource4zpu#000000234 float *outData; line2process4source-read-by-fetch2programsource4zpu#000000235 int size; line2process4source-read-by-fetch2programsource4zpu#000000236 }; line2process4source-read-by-fetch2programsource4zpu#000000237 line2process4source-read-by-fetch2programsource4zpu#000000238 /*function4xi function = "myNativeKernel" usage = "native kernel"*/ line2process4source-read-by-fetch2programsource4zpu#000000239 void myNativeKernel(void *data) { line2process4source-read-by-fetch2programsource4zpu#000000240 struct myNativeKernelData *NKData = (struct myNativeKernelData*)data; line2process4source-read-by-fetch2programsource4zpu#000000241 line2process4source-read-by-fetch2programsource4zpu#000000242 printf("Data passed to native kernel\n"); line2process4source-read-by-fetch2programsource4zpu#000000243 for (int i = 0; i NKData-size; i++) { line2process4source-read-by-fetch2programsource4zpu#000000244 if (i (NKData-size -5)) line2process4source-read-by-fetch2programsource4zpu#000000245 printf("n, x = %d %f\n",i,NKData-inData[i]); line2process4source-read-by-fetch2programsource4zpu#000000246 NKData-outData[i] = 2*NKData-inData[i]; line2process4source-read-by-fetch2programsource4zpu#000000247 } line2process4source-read-by-fetch2programsource4zpu#000000248 line2process4source-read-by-fetch2programsource4zpu#000000249 } line2process4source-read-by-fetch2programsource4zpu#000000250 /*/function4xi*/ line2process4source-read-by-fetch2programsource4zpu#000000251 line2process4source-read-by-fetch2programsource4zpu#000000252 /*function4xi function = "printKernelTimes" usage = "Print the kernel times"*/ line2process4source-read-by-fetch2programsource4zpu#000000253 void printKernelTimes(cl_event event,char *eventName) { line2process4source-read-by-fetch2programsource4zpu#000000254 static cl_ulong baseTime = -1; line2process4source-read-by-fetch2programsource4zpu#000000255 cl_ulong sTime,eTime; line2process4source-read-by-fetch2programsource4zpu#000000256 cl_int err = clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_START,sizeof(cl_ulong),sTime,NULL); line2process4source-read-by-fetch2programsource4zpu#000000257 err |= clGetEventProfilingInfo(event,CL_PROFILING_COMMAND_END,sizeof(cl_ulong),eTime,NULL); line2process4source-read-by-fetch2programsource4zpu#000000258 line2process4source-read-by-fetch2programsource4zpu#000000259 // Set the base time and then subtract it to make the numbers easier to read line2process4source-read-by-fetch2programsource4zpu#000000260 if (baseTime == -1) line2process4source-read-by-fetch2programsource4zpu#000000261 baseTime = sTime; line2process4source-read-by-fetch2programsource4zpu#000000262 if (err != CL_SUCCESS) { line2process4source-read-by-fetch2programsource4zpu#000000263 printf("Failed to get times for %s\n",eventName); line2process4source-read-by-fetch2programsource4zpu#000000264 } line2process4source-read-by-fetch2programsource4zpu#000000265 else { line2process4source-read-by-fetch2programsource4zpu#000000266 printf("%s started at %ld, finished at %ld\n",eventName,(sTime - baseTime),(eTime - baseTime)); line2process4source-read-by-fetch2programsource4zpu#000000267 } line2process4source-read-by-fetch2programsource4zpu#000000268 } line2process4source-read-by-fetch2programsource4zpu#000000269 /*/function4xi*/ line2process4source-read-by-fetch2programsource4zpu#000000270 line2process4source-read-by-fetch2programsource4zpu#000000271 /*function4xi function = "OCLError" usage = "error code checking"*/ line2process4source-read-by-fetch2programsource4zpu#000000272 void OCLError(cl_int err, int line) { line2process4source-read-by-fetch2programsource4zpu#000000273 if (err != CL_SUCCESS) { line2process4source-read-by-fetch2programsource4zpu#000000274 printf("Error at line %d\n",line); line2process4source-read-by-fetch2programsource4zpu#000000275 exit(1); line2process4source-read-by-fetch2programsource4zpu#000000276 } line2process4source-read-by-fetch2programsource4zpu#000000277 } line2process4source-read-by-fetch2programsource4zpu#000000278 /*/function4xi*/ line2process4source-read-by-fetch2programsource4zpu#000000279 line2process4source-read-by-fetch2programsource4zpu#000000280 /*function4xi function = "nbody_kern" usage = "kernel example 1"*/ line2process4source-read-by-fetch2programsource4zpu#000000281 __kernel void nbody_kern( line2process4source-read-by-fetch2programsource4zpu#000000282 float dt1, float eps, line2process4source-read-by-fetch2programsource4zpu#000000283 __global float4* pos_old, line2process4source-read-by-fetch2programsource4zpu#000000284 __global float4* pos_new, line2process4source-read-by-fetch2programsource4zpu#000000285 __global float4* vel, line2process4source-read-by-fetch2programsource4zpu#000000286 __local float4* pblock line2process4source-read-by-fetch2programsource4zpu#000000287 ) line2process4source-read-by-fetch2programsource4zpu#000000288 { line2process4source-read-by-fetch2programsource4zpu#000000289 const float4 dt = (float4)(dt1,dt1,dt1,0.0f); line2process4source-read-by-fetch2programsource4zpu#000000290 int gti = get_global_id(0); line2process4source-read-by-fetch2programsource4zpu#000000291 int ti = get_local_id(0); line2process4source-read-by-fetch2programsource4zpu#000000292 int n = get_global_size(0); line2process4source-read-by-fetch2programsource4zpu#000000293 int nt = get_local_size(0); line2process4source-read-by-fetch2programsource4zpu#000000294 int nb = n/nt; line2process4source-read-by-fetch2programsource4zpu#000000295 float4 p = pos_old[gti]; line2process4source-read-by-fetch2programsource4zpu#000000296 float4 v = vel[gti]; line2process4source-read-by-fetch2programsource4zpu#000000297 float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); line2process4source-read-by-fetch2programsource4zpu#000000298 for(int jb=0; jb nb; jb++) { /* Foreach block ... */ line2process4source-read-by-fetch2programsource4zpu#000000299 pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ line2process4source-read-by-fetch2programsource4zpu#000000300 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ line2process4source-read-by-fetch2programsource4zpu#000000301 for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ line2process4source-read-by-fetch2programsource4zpu#000000302 float4 p2 = pblock[j]; /* Read a cached particle position */ line2process4source-read-by-fetch2programsource4zpu#000000303 float4 d = p2 - p; line2process4source-read-by-fetch2programsource4zpu#000000304 float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); line2process4source-read-by-fetch2programsource4zpu#000000305 float f = p2.w*invr*invr*invr; line2process4source-read-by-fetch2programsource4zpu#000000306 a += f*d; /* Accumulate acceleration */ line2process4source-read-by-fetch2programsource4zpu#000000307 } line2process4source-read-by-fetch2programsource4zpu#000000308 line2process4source-read-by-fetch2programsource4zpu#000000309 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ line2process4source-read-by-fetch2programsource4zpu#000000310 } line2process4source-read-by-fetch2programsource4zpu#000000311 p += dt*v + 0.5f*dt*dt*a; line2process4source-read-by-fetch2programsource4zpu#000000312 v += dt*a; line2process4source-read-by-fetch2programsource4zpu#000000313 pos_new[gti] = p; line2process4source-read-by-fetch2programsource4zpu#000000314 vel[gti] = v; line2process4source-read-by-fetch2programsource4zpu#000000315 } line2process4source-read-by-fetch2programsource4zpu#000000316 /*/function4xi*/ line2process4source-read-by-fetch2programsource4zpu#000000317 line2process4source-read-by-fetch2programsource4zpu#000000318 /*function4xi function = "nbody2_kern" usage = "kernel example 2"*/ line2process4source-read-by-fetch2programsource4zpu#000000319 __kernel void nbody_kern( line2process4source-read-by-fetch2programsource4zpu#000000320 float dt1, float eps, line2process4source-read-by-fetch2programsource4zpu#000000321 __global float4* pos_old, line2process4source-read-by-fetch2programsource4zpu#000000322 __global float4* pos_new, line2process4source-read-by-fetch2programsource4zpu#000000323 __global float4* vel, line2process4source-read-by-fetch2programsource4zpu#000000324 __local float4* pblock, line2process4source-read-by-fetch2programsource4zpu#000000325 __global float4* pos2 line2process4source-read-by-fetch2programsource4zpu#000000326 ) { line2process4source-read-by-fetch2programsource4zpu#000000327 const float4 dt = (float4)(dt1,dt1,dt1,0.0f); line2process4source-read-by-fetch2programsource4zpu#000000328 int gti = get_global_id(0); line2process4source-read-by-fetch2programsource4zpu#000000329 int ti = get_local_id(0); line2process4source-read-by-fetch2programsource4zpu#000000330 int n = get_global_size(0); line2process4source-read-by-fetch2programsource4zpu#000000331 int nt = get_local_size(0); line2process4source-read-by-fetch2programsource4zpu#000000332 int nb = n/nt; line2process4source-read-by-fetch2programsource4zpu#000000333 float4 p = pos_old[gti]; line2process4source-read-by-fetch2programsource4zpu#000000334 float4 v = vel[gti]; line2process4source-read-by-fetch2programsource4zpu#000000335 float4 a = (float4)(0.0f,0.0f,0.0f,0.0f); line2process4source-read-by-fetch2programsource4zpu#000000336 for(int jb=0; jb nb; jb++) { /* Foreach block ... */ line2process4source-read-by-fetch2programsource4zpu#000000337 pblock[ti] = pos_old[jb*nt+ti]; /* Cache ONE particle position */ line2process4source-read-by-fetch2programsource4zpu#000000338 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ line2process4source-read-by-fetch2programsource4zpu#000000339 for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ line2process4source-read-by-fetch2programsource4zpu#000000340 float4 p2 = pblock[j]; /* Read a cached particle position */ line2process4source-read-by-fetch2programsource4zpu#000000341 float4 d = p2 - p; line2process4source-read-by-fetch2programsource4zpu#000000342 float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); line2process4source-read-by-fetch2programsource4zpu#000000343 float f = p2.w*invr*invr*invr; line2process4source-read-by-fetch2programsource4zpu#000000344 a += f*d; /* Accumulate acceleration */ line2process4source-read-by-fetch2programsource4zpu#000000345 } line2process4source-read-by-fetch2programsource4zpu#000000346 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ line2process4source-read-by-fetch2programsource4zpu#000000347 pblock[ti] = pos2[jb*nt+ti]; /* Cache ONE particle position */ line2process4source-read-by-fetch2programsource4zpu#000000348 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in the work-group */ line2process4source-read-by-fetch2programsource4zpu#000000349 for(int j=0; jnt; j++) { /* For ALL cached particle positions ... */ line2process4source-read-by-fetch2programsource4zpu#000000350 float4 p2 = pblock[j]; /* Read a cached particle position */ line2process4source-read-by-fetch2programsource4zpu#000000351 float4 d = p2 - p; line2process4source-read-by-fetch2programsource4zpu#000000352 float invr = rsqrt(d.x*d.x + d.y*d.y + d.z*d.z + eps); line2process4source-read-by-fetch2programsource4zpu#000000353 float f = p2.w*invr*invr*invr; line2process4source-read-by-fetch2programsource4zpu#000000354 a += f*d; /* Accumulate acceleration */ line2process4source-read-by-fetch2programsource4zpu#000000355 } line2process4source-read-by-fetch2programsource4zpu#000000356 barrier(CLK_LOCAL_MEM_FENCE); /* Wait for others in work-group */ line2process4source-read-by-fetch2programsource4zpu#000000357 } line2process4source-read-by-fetch2programsource4zpu#000000358 /*/function4xi*/ line2process4source-read-by-fetch2programsource4zpu#000000359 line2process4source-read-by-fetch2programsource4zpu#000000360 /*function4xi function = "main" usage = "main"*/ line2process4source-read-by-fetch2programsource4zpu#000000361 int main() { line2process4source-read-by-fetch2programsource4zpu#000000362 // OpenCL Platform, Device etc vars line2process4source-read-by-fetch2programsource4zpu#000000363 cl_device_id *Devices; // OpenCL device line2process4source-read-by-fetch2programsource4zpu#000000364 cl_context Context; // OpenCL context line2process4source-read-by-fetch2programsource4zpu#000000365 static cl_platform_id Platform; // OpenCL platform line2process4source-read-by-fetch2programsource4zpu#000000366 cl_program Program; line2process4source-read-by-fetch2programsource4zpu#000000367 cl_command_queue *CommandQs; // OpenCL command queues line2process4source-read-by-fetch2programsource4zpu#000000368 cl_int err; line2process4source-read-by-fetch2programsource4zpu#000000369 line2process4source-read-by-fetch2programsource4zpu#000000370 // Get platform IDs line2process4source-read-by-fetch2programsource4zpu#000000371 err = clGetPlatformIDs( 1, Platform, NULL); line2process4source-read-by-fetch2programsource4zpu#000000372 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000373 line2process4source-read-by-fetch2programsource4zpu#000000374 // get all devices line2process4source-read-by-fetch2programsource4zpu#000000375 cl_uint nDevices = -1; line2process4source-read-by-fetch2programsource4zpu#000000376 err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, 0, NULL, nDevices); line2process4source-read-by-fetch2programsource4zpu#000000377 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000378 if (nDevices 3) { printf("Num Devices less than 3\n"); exit(1); } line2process4source-read-by-fetch2programsource4zpu#000000379 line2process4source-read-by-fetch2programsource4zpu#000000380 Devices = (cl_device_id *)malloc(nDevices * sizeof(cl_device_id)); line2process4source-read-by-fetch2programsource4zpu#000000381 err = clGetDeviceIDs(Platform, CL_DEVICE_TYPE_ALL, nDevices, Devices, NULL); line2process4source-read-by-fetch2programsource4zpu#000000382 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000383 line2process4source-read-by-fetch2programsource4zpu#000000384 // Create a compute context line2process4source-read-by-fetch2programsource4zpu#000000385 Context = clCreateContext(0, nDevices, Devices, NULL, NULL, err); line2process4source-read-by-fetch2programsource4zpu#000000386 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000387 // Create a command queue line2process4source-read-by-fetch2programsource4zpu#000000388 CommandQs = (cl_command_queue *)malloc(nDevices*sizeof(cl_command_queue)); line2process4source-read-by-fetch2programsource4zpu#000000389 for (int i = 0; i nDevices; i++) { line2process4source-read-by-fetch2programsource4zpu#000000390 CommandQs[i] = clCreateCommandQueue(Context, Devices[i], CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE , err); line2process4source-read-by-fetch2programsource4zpu#000000391 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000392 } line2process4source-read-by-fetch2programsource4zpu#000000393 line2process4source-read-by-fetch2programsource4zpu#000000394 // Create the compute program from the source buffer line2process4source-read-by-fetch2programsource4zpu#000000395 Program = clCreateProgramWithSource(Context, 1, (const char **) KernelSource, NULL, err); line2process4source-read-by-fetch2programsource4zpu#000000396 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000397 line2process4source-read-by-fetch2programsource4zpu#000000398 err = clBuildProgram(Program, nDevices, Devices, NULL, NULL, NULL); line2process4source-read-by-fetch2programsource4zpu#000000399 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000400 line2process4source-read-by-fetch2programsource4zpu#000000401 // Create the compute kernel from the program line2process4source-read-by-fetch2programsource4zpu#000000402 cl_kernel Kernel = clCreateKernel(Program, "simple", err); line2process4source-read-by-fetch2programsource4zpu#000000403 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000404 line2process4source-read-by-fetch2programsource4zpu#000000405 // kernel data vars line2process4source-read-by-fetch2programsource4zpu#000000406 float *a_h; // host memory used for original data and return data line2process4source-read-by-fetch2programsource4zpu#000000407 cl_mem a_d; // device memory used for input/output line2process4source-read-by-fetch2programsource4zpu#000000408 cl_mem b_d; // device memory used for output line2process4source-read-by-fetch2programsource4zpu#000000409 size_t entries = 64000000; // number of entries in the array line2process4source-read-by-fetch2programsource4zpu#000000410 size_t local = 1; line2process4source-read-by-fetch2programsource4zpu#000000411 int count = 100; line2process4source-read-by-fetch2programsource4zpu#000000412 line2process4source-read-by-fetch2programsource4zpu#000000413 a_h = (float *)malloc(entries*sizeof(float)); line2process4source-read-by-fetch2programsource4zpu#000000414 for (int i =0; i entries; i++) line2process4source-read-by-fetch2programsource4zpu#000000415 a_h[i] = (1 25) + 6; line2process4source-read-by-fetch2programsource4zpu#000000416 a_d = clCreateBuffer(Context, CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, sizeof(float) * entries, a_h, err); line2process4source-read-by-fetch2programsource4zpu#000000417 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000418 b_d = clCreateBuffer(Context, CL_MEM_WRITE_ONLY, sizeof(float) * entries, NULL, err); line2process4source-read-by-fetch2programsource4zpu#000000419 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000420 line2process4source-read-by-fetch2programsource4zpu#000000421 line2process4source-read-by-fetch2programsource4zpu#000000422 cl_kernel Kernel2 = clCreateKernel(Program, "simple2", err); line2process4source-read-by-fetch2programsource4zpu#000000423 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000424 clSetKernelArg(Kernel, 0, sizeof(cl_mem), a_d); line2process4source-read-by-fetch2programsource4zpu#000000425 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000426 clSetKernelArg(Kernel2, 0, sizeof(cl_mem), a_d); line2process4source-read-by-fetch2programsource4zpu#000000427 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000428 clSetKernelArg(Kernel2, 1, sizeof(int), count); line2process4source-read-by-fetch2programsource4zpu#000000429 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000430 line2process4source-read-by-fetch2programsource4zpu#000000431 clGetKernelWorkGroupInfo (Kernel,Devices[DEVID2],CL_KERNEL_WORK_GROUP_SIZE,sizeof(size_t),local,NULL); line2process4source-read-by-fetch2programsource4zpu#000000432 line2process4source-read-by-fetch2programsource4zpu#000000433 cl_event k2Event[1]; line2process4source-read-by-fetch2programsource4zpu#000000434 cl_event k1Event[1]; line2process4source-read-by-fetch2programsource4zpu#000000435 err = clEnqueueNDRangeKernel(CommandQs[DEVID], Kernel2, 1, NULL, entries, NULL, 0, NULL, k2Event); line2process4source-read-by-fetch2programsource4zpu#000000436 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4zpu#000000437 err = clEnqueueNDRangeKernel(CommandQs[DEVID2], Kernel, 1, NULL, entries, local, 1, k2Event, k1Event); line2process4source-read-by-fetch2programsource4zpu#000000438 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4zpu#000000439 line2process4source-read-by-fetch2programsource4zpu#000000440 // line2process4source-read-by-fetch2programsource4zpu#000000441 // Now try enqueueing a native kernel line2process4source-read-by-fetch2programsource4zpu#000000442 // line2process4source-read-by-fetch2programsource4zpu#000000443 // Find a queue that is associated with a CPU device (assumes 1 queue per device) line2process4source-read-by-fetch2programsource4zpu#000000444 cl_command_queue CPUQueue = NULL; line2process4source-read-by-fetch2programsource4zpu#000000445 for (int i = 0; i nDevices; i++) { line2process4source-read-by-fetch2programsource4zpu#000000446 cl_device_id qDevID; line2process4source-read-by-fetch2programsource4zpu#000000447 cl_device_type DevType; line2process4source-read-by-fetch2programsource4zpu#000000448 cl_device_exec_capabilities DevExecCap; line2process4source-read-by-fetch2programsource4zpu#000000449 line2process4source-read-by-fetch2programsource4zpu#000000450 // get the device attached to this queue line2process4source-read-by-fetch2programsource4zpu#000000451 err = clGetCommandQueueInfo (CommandQs[i] ,CL_QUEUE_DEVICE, sizeof(qDevID),qDevID,NULL); line2process4source-read-by-fetch2programsource4zpu#000000452 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4zpu#000000453 line2process4source-read-by-fetch2programsource4zpu#000000454 // get the type of this device line2process4source-read-by-fetch2programsource4zpu#000000455 err = clGetDeviceInfo (qDevID, CL_DEVICE_TYPE, sizeof(DevType), DevType,NULL); line2process4source-read-by-fetch2programsource4zpu#000000456 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4zpu#000000457 line2process4source-read-by-fetch2programsource4zpu#000000458 err = clGetDeviceInfo (qDevID, CL_DEVICE_EXECUTION_CAPABILITIES , sizeof(DevExecCap), DevExecCap,NULL); line2process4source-read-by-fetch2programsource4zpu#000000459 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4zpu#000000460 line2process4source-read-by-fetch2programsource4zpu#000000461 // compare the device_type for this device line2process4source-read-by-fetch2programsource4zpu#000000462 if ((DevType == CL_DEVICE_TYPE_CPU) ((DevExecCap == CL_EXEC_NATIVE_KERNEL) || line2process4source-read-by-fetch2programsource4zpu#000000463 (DevExecCap == CL_EXEC_NATIVE_KERNEL|CL_EXEC_KERNEL))) { line2process4source-read-by-fetch2programsource4zpu#000000464 CPUQueue = CommandQs[i]; line2process4source-read-by-fetch2programsource4zpu#000000465 } line2process4source-read-by-fetch2programsource4zpu#000000466 } line2process4source-read-by-fetch2programsource4zpu#000000467 line2process4source-read-by-fetch2programsource4zpu#000000468 cl_event k3Event[1]; line2process4source-read-by-fetch2programsource4zpu#000000469 cl_event eventLists[2]; line2process4source-read-by-fetch2programsource4zpu#000000470 eventLists[0] = k2Event[0]; line2process4source-read-by-fetch2programsource4zpu#000000471 eventLists[1] = k1Event[0]; line2process4source-read-by-fetch2programsource4zpu#000000472 if (CPUQueue != NULL) { line2process4source-read-by-fetch2programsource4zpu#000000473 line2process4source-read-by-fetch2programsource4zpu#000000474 #ifndef NATIVEK line2process4source-read-by-fetch2programsource4zpu#000000475 cl_kernel Kernel3 = clCreateKernel(Program, "simple3", err); line2process4source-read-by-fetch2programsource4zpu#000000476 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4zpu#000000477 line2process4source-read-by-fetch2programsource4zpu#000000478 clSetKernelArg(Kernel3, 0, sizeof(cl_mem), a_d); line2process4source-read-by-fetch2programsource4zpu#000000479 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000480 clSetKernelArg(Kernel3, 1, sizeof(cl_mem), b_d); line2process4source-read-by-fetch2programsource4zpu#000000481 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000482 clSetKernelArg(Kernel3, 2, sizeof(int), entries); line2process4source-read-by-fetch2programsource4zpu#000000483 OCLError(err,__LINE__); line2process4source-read-by-fetch2programsource4zpu#000000484 line2process4source-read-by-fetch2programsource4zpu#000000485 err = clEnqueueNDRangeKernel(CPUQueue, Kernel3, 1, NULL, entries, local, 2, eventLists, k3Event); line2process4source-read-by-fetch2programsource4zpu#000000486 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4zpu#000000487 #else line2process4source-read-by-fetch2programsource4zpu#000000488 // Allocate and populate the data structure for the nativeKernel line2process4source-read-by-fetch2programsource4zpu#000000489 struct myNativeKernelData NKData; line2process4source-read-by-fetch2programsource4zpu#000000490 NKData.size = entries; line2process4source-read-by-fetch2programsource4zpu#000000491 line2process4source-read-by-fetch2programsource4zpu#000000492 cl_mem memList[2]; line2process4source-read-by-fetch2programsource4zpu#000000493 memList[0] = a_d; line2process4source-read-by-fetch2programsource4zpu#000000494 memList[1] = b_d; line2process4source-read-by-fetch2programsource4zpu#000000495 line2process4source-read-by-fetch2programsource4zpu#000000496 void *memLocs[2]; line2process4source-read-by-fetch2programsource4zpu#000000497 memLocs[0] = (NKData.inData); line2process4source-read-by-fetch2programsource4zpu#000000498 memLocs[1] = (NKData.outData); line2process4source-read-by-fetch2programsource4zpu#000000499 line2process4source-read-by-fetch2programsource4zpu#000000500 // Enqueue the kernel line2process4source-read-by-fetch2programsource4zpu#000000501 err = clEnqueueNativeKernel (CPUQueue, myNativeKernel, (void *)NKData, sizeof(NKData),2,memList, (const void **)memLocs, 2, eventLists, k3Event); line2process4source-read-by-fetch2programsource4zpu#000000502 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4zpu#000000503 #endif line2process4source-read-by-fetch2programsource4zpu#000000504 line2process4source-read-by-fetch2programsource4zpu#000000505 err = clEnqueueReadBuffer(CPUQueue, b_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k3Event, NULL); line2process4source-read-by-fetch2programsource4zpu#000000506 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4zpu#000000507 line2process4source-read-by-fetch2programsource4zpu#000000508 printf("Data from b_d\n"); line2process4source-read-by-fetch2programsource4zpu#000000509 for (int i = (entries - 5); i entries; i++) line2process4source-read-by-fetch2programsource4zpu#000000510 printf("n, x = %d %f\n",i,a_h[i]); line2process4source-read-by-fetch2programsource4zpu#000000511 } line2process4source-read-by-fetch2programsource4zpu#000000512 else { line2process4source-read-by-fetch2programsource4zpu#000000513 printf("No CPU device found\n"); line2process4source-read-by-fetch2programsource4zpu#000000514 } line2process4source-read-by-fetch2programsource4zpu#000000515 line2process4source-read-by-fetch2programsource4zpu#000000516 err = clEnqueueReadBuffer(CommandQs[DEVID], a_d, CL_TRUE, 0, sizeof(float) * entries, a_h, 1, k1Event, NULL); line2process4source-read-by-fetch2programsource4zpu#000000517 OCLError(err, __LINE__); line2process4source-read-by-fetch2programsource4zpu#000000518 line2process4source-read-by-fetch2programsource4zpu#000000519 printf("Data from a_d, should be half of data from b_d\n"); line2process4source-read-by-fetch2programsource4zpu#000000520 for (int i = (entries - 5); i entries; i++) line2process4source-read-by-fetch2programsource4zpu#000000521 printf("n, x = %d %f\n",i,a_h[i]); line2process4source-read-by-fetch2programsource4zpu#000000522 line2process4source-read-by-fetch2programsource4zpu#000000523 printKernelTimes(k2Event[0],"Kernel 2"); line2process4source-read-by-fetch2programsource4zpu#000000524 printKernelTimes(k1Event[0],"Kernel 1"); line2process4source-read-by-fetch2programsource4zpu#000000525 printKernelTimes(k3Event[0],"Kernel 3"); line2process4source-read-by-fetch2programsource4zpu#000000526 line2process4source-read-by-fetch2programsource4zpu#000000527 // tidy up line2process4source-read-by-fetch2programsource4zpu#000000528 free(Devices); line2process4source-read-by-fetch2programsource4zpu#000000529 free(CommandQs); line2process4source-read-by-fetch2programsource4zpu#000000530 free(a_h); line2process4source-read-by-fetch2programsource4zpu#000000531 clReleaseMemObject(a_d); line2process4source-read-by-fetch2programsource4zpu#000000532 clReleaseMemObject(b_d); line2process4source-read-by-fetch2programsource4zpu#000000533 } line2process4source-read-by-fetch2programsource4zpu#000000534 /*/function4xi*/ line2process4source-read-by-fetch2programsource4zpu#000000687 #profile4xi profile = "11" / line2process4source-read-by-fetch2programsource4zpu#000000688 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000689 #program4xi program = "zpu2sampler4xi5test.py" line2process4source-read-by-fetch2programsource4zpu#000000690 #abstract4xi abstract = "tests zpu2sampler4xi.py"/ line2process4source-read-by-fetch2programsource4zpu#000000691 #verify4xi verification = "11" target = "zpu2sampler4xi.py"/ line2process4source-read-by-fetch2programsource4zpu#000000692 #contextualize4xi context = "sampler4xi.py"/ line2process4source-read-by-fetch2programsource4zpu#000000693 #state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/ line2process4source-read-by-fetch2programsource4zpu#000000694 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000695 line2process4source-read-by-fetch2programsource4zpu#000000696 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000697 # Public API line2process4source-read-by-fetch2programsource4zpu#000000698 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000699 #interface4xi interface = " line2process4source-read-by-fetch2programsource4zpu#000000700 __all__ = ['zpu2sampler4xi5test'] line2process4source-read-by-fetch2programsource4zpu#000000701 #" line2process4source-read-by-fetch2programsource4zpu#000000702 #/ line2process4source-read-by-fetch2programsource4zpu#000000703 line2process4source-read-by-fetch2programsource4zpu#000000704 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000705 # Standard Imports line2process4source-read-by-fetch2programsource4zpu#000000706 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000707 #standardize4xi standard = " line2process4source-read-by-fetch2programsource4zpu#000000708 import os line2process4source-read-by-fetch2programsource4zpu#000000709 import sys line2process4source-read-by-fetch2programsource4zpu#000000710 import threading line2process4source-read-by-fetch2programsource4zpu#000000711 import _thread line2process4source-read-by-fetch2programsource4zpu#000000712 line2process4source-read-by-fetch2programsource4zpu#000000713 import signal line2process4source-read-by-fetch2programsource4zpu#000000714 import itertools line2process4source-read-by-fetch2programsource4zpu#000000715 import weakref line2process4source-read-by-fetch2programsource4zpu#000000716 import logging line2process4source-read-by-fetch2programsource4zpu#000000717 #" line2process4source-read-by-fetch2programsource4zpu#000000718 #/ line2process4source-read-by-fetch2programsource4zpu#000000719 line2process4source-read-by-fetch2programsource4zpu#000000720 line2process4source-read-by-fetch2programsource4zpu#000000721 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000722 # Scope4Xi imports line2process4source-read-by-fetch2programsource4zpu#000000723 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000724 #dragonize4xi dragonization = " line2process4source-read-by-fetch2programsource4zpu#000000725 import version4xi line2process4source-read-by-fetch2programsource4zpu#000000726 line2process4source-read-by-fetch2programsource4zpu#000000727 #" line2process4source-read-by-fetch2programsource4zpu#000000728 #/ line2process4source-read-by-fetch2programsource4zpu#000000729 line2process4source-read-by-fetch2programsource4zpu#000000730 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000731 # Multiprocessing Imports line2process4source-read-by-fetch2programsource4zpu#000000732 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000733 #process4xi process = " line2process4source-read-by-fetch2programsource4zpu#000000734 import _multiprocessing line2process4source-read-by-fetch2programsource4zpu#000000735 #" line2process4source-read-by-fetch2programsource4zpu#000000736 #/ line2process4source-read-by-fetch2programsource4zpu#000000737 line2process4source-read-by-fetch2programsource4zpu#000000738 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000739 # DragonXi imports line2process4source-read-by-fetch2programsource4zpu#000000740 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000741 #dragonize4xi dragonization = " line2process4source-read-by-fetch2programsource4zpu#000000742 from pipe4xi import Pipe4Xi line2process4source-read-by-fetch2programsource4zpu#000000743 from platformids4xi import get2platformids4xi line2process4source-read-by-fetch2programsource4zpu#000000744 from queue4xi import Queue4Xi line2process4source-read-by-fetch2programsource4zpu#000000745 line2process4source-read-by-fetch2programsource4zpu#000000746 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000747 # Command queue module line2process4source-read-by-fetch2programsource4zpu#000000748 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000749 from zpu2commandqueue4xi import ZPU2CommandQueue4Xi line2process4source-read-by-fetch2programsource4zpu#000000750 from zpu2commandqueue4xi import create2commandqueue4zpu line2process4source-read-by-fetch2programsource4zpu#000000751 from zpu2commandqueue4xi import flush2commandqueue4zpu line2process4source-read-by-fetch2programsource4zpu#000000752 from zpu2commandqueue4xi import finish2commandqueue4zpu line2process4source-read-by-fetch2programsource4zpu#000000753 from zpu2commandqueue4xi import get2commandqueueinfo4zpu line2process4source-read-by-fetch2programsource4zpu#000000754 from zpu2commandqueue4xi import release2commandqueue4zpu line2process4source-read-by-fetch2programsource4zpu#000000755 from zpu2commandqueue4xi import retain2commandqueue4zpu line2process4source-read-by-fetch2programsource4zpu#000000756 from zpu2commandqueue4xi import set2commandqueue4zpu line2process4source-read-by-fetch2programsource4zpu#000000757 from zpu2commandqueue4xi import trace2commandqueue4zpu line2process4source-read-by-fetch2programsource4zpu#000000758 line2process4source-read-by-fetch2programsource4zpu#000000759 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000760 # Context module line2process4source-read-by-fetch2programsource4zpu#000000761 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000762 from zpu2context4xi import ZPU2Context4Xi line2process4source-read-by-fetch2programsource4zpu#000000763 from zpu2context4xi import create2context4zpu line2process4source-read-by-fetch2programsource4zpu#000000764 from zpu2context4xi import get2context4zpu line2process4source-read-by-fetch2programsource4zpu#000000765 from zpu2context4xi import release2context4zpu line2process4source-read-by-fetch2programsource4zpu#000000766 from zpu2context4xi import retain2context4zpu line2process4source-read-by-fetch2programsource4zpu#000000767 from zpu2context4xi import set2context4zpu line2process4source-read-by-fetch2programsource4zpu#000000768 line2process4source-read-by-fetch2programsource4zpu#000000769 line2process4source-read-by-fetch2programsource4zpu#000000770 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000771 # Device module line2process4source-read-by-fetch2programsource4zpu#000000772 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000773 from zpu2device4xi import ZPU4Xi line2process4source-read-by-fetch2programsource4zpu#000000774 from zpu2device4xi import init2zpu4xi line2process4source-read-by-fetch2programsource4zpu#000000775 from zpu2device4xi import set2zpu4xi line2process4source-read-by-fetch2programsource4zpu#000000776 from zpu2device4xi import get2zpu4xi line2process4source-read-by-fetch2programsource4zpu#000000777 line2process4source-read-by-fetch2programsource4zpu#000000778 line2process4source-read-by-fetch2programsource4zpu#000000779 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000780 # Event module line2process4source-read-by-fetch2programsource4zpu#000000781 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000782 from zpu2event4xi import ZPU2Event4Xi line2process4source-read-by-fetch2programsource4zpu#000000783 from zpu2event4xi import create2event4zpu line2process4source-read-by-fetch2programsource4zpu#000000784 from zpu2event4xi import get2eventinfo4zpu line2process4source-read-by-fetch2programsource4zpu#000000785 from zpu2event4xi import release2event4zpu line2process4source-read-by-fetch2programsource4zpu#000000786 from zpu2event4xi import retain2event4zpu line2process4source-read-by-fetch2programsource4zpu#000000787 from zpu2event4xi import set2eventcallback4zpu line2process4source-read-by-fetch2programsource4zpu#000000788 from zpu2event4xi import set2event4zpu line2process4source-read-by-fetch2programsource4zpu#000000789 from zpu2event4xi import trace2event4zpu line2process4source-read-by-fetch2programsource4zpu#000000790 from zpu2event4xi import wait2event4zpu line2process4source-read-by-fetch2programsource4zpu#000000791 line2process4source-read-by-fetch2programsource4zpu#000000792 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000793 # Image module line2process4source-read-by-fetch2programsource4zpu#000000794 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000795 from zpu2image4xi import ZPU2Image4Xi line2process4source-read-by-fetch2programsource4zpu#000000796 from zpu2image4xi import create2image4zpu line2process4source-read-by-fetch2programsource4zpu#000000797 from zpu2image4xi import get2imageinfo4zpu line2process4source-read-by-fetch2programsource4zpu#000000798 from zpu2image4xi import get2supportedimageformats4zpu line2process4source-read-by-fetch2programsource4zpu#000000799 from zpu2image4xi import manoeuvre2copyimage4zpu line2process4source-read-by-fetch2programsource4zpu#000000800 from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu line2process4source-read-by-fetch2programsource4zpu#000000801 from zpu2image4xi import manoeuvre2copybuffertoimage4zpu line2process4source-read-by-fetch2programsource4zpu#000000802 from zpu2image4xi import manoeuvre2readimage4zpu line2process4source-read-by-fetch2programsource4zpu#000000803 from zpu2image4xi import manoeuvre2writeimage4zpu line2process4source-read-by-fetch2programsource4zpu#000000804 from zpu2image4xi import manoeuvre2mapimage4zpu line2process4source-read-by-fetch2programsource4zpu#000000805 from zpu2image4xi import copy2image4zpu line2process4source-read-by-fetch2programsource4zpu#000000806 from zpu2image4xi import copy2imagetobuffer4zpu line2process4source-read-by-fetch2programsource4zpu#000000807 from zpu2image4xi import copy2buffertoimage4zpu line2process4source-read-by-fetch2programsource4zpu#000000808 from zpu2image4xi import read2image4zpu line2process4source-read-by-fetch2programsource4zpu#000000809 from zpu2image4xi import map2image4zpu line2process4source-read-by-fetch2programsource4zpu#000000810 from zpu2image4xi import release2image4zpu line2process4source-read-by-fetch2programsource4zpu#000000811 from zpu2image4xi import retain2image4zpu line2process4source-read-by-fetch2programsource4zpu#000000812 from zpu2image4xi import set2imagecallback4zpu line2process4source-read-by-fetch2programsource4zpu#000000813 from zpu2image4xi import set2image4zpu line2process4source-read-by-fetch2programsource4zpu#000000814 from zpu2image4xi import trace2image4zpu line2process4source-read-by-fetch2programsource4zpu#000000815 from zpu2image4xi import wait2image4zpu line2process4source-read-by-fetch2programsource4zpu#000000816 from zpu2image4xi import write2image4zpu line2process4source-read-by-fetch2programsource4zpu#000000817 line2process4source-read-by-fetch2programsource4zpu#000000818 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000819 # Sampler module line2process4source-read-by-fetch2programsource4zpu#000000820 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000821 from zpu2sampler4xi import ZPU2Sampler4Xi line2process4source-read-by-fetch2programsource4zpu#000000822 from zpu2sampler4xi import create2sampler4zpu line2process4source-read-by-fetch2programsource4zpu#000000823 from zpu2sampler4xi import get2samplerinfo4zpu line2process4source-read-by-fetch2programsource4zpu#000000824 from zpu2sampler4xi import release2sampler4zpu line2process4source-read-by-fetch2programsource4zpu#000000825 from zpu2sampler4xi import retain2sampler4zpu line2process4source-read-by-fetch2programsource4zpu#000000826 from zpu2sampler4xi import set2samplercallback4zpu line2process4source-read-by-fetch2programsource4zpu#000000827 from zpu2sampler4xi import set2sampler4zpu line2process4source-read-by-fetch2programsource4zpu#000000828 from zpu2sampler4xi import trace2sampler4zpu line2process4source-read-by-fetch2programsource4zpu#000000829 line2process4source-read-by-fetch2programsource4zpu#000000830 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000831 # Platform module line2process4source-read-by-fetch2programsource4zpu#000000832 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000833 from platforminfo4xi import PlatformInfo4Xi line2process4source-read-by-fetch2programsource4zpu#000000834 from platforminfo4xi import init2platforminfo4xi line2process4source-read-by-fetch2programsource4zpu#000000835 from platforminfo4xi import set2platforminfo4xi line2process4source-read-by-fetch2programsource4zpu#000000836 from platforminfo4xi import get2platforminfo4xi line2process4source-read-by-fetch2programsource4zpu#000000837 line2process4source-read-by-fetch2programsource4zpu#000000838 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000839 # Trace modules line2process4source-read-by-fetch2programsource4zpu#000000840 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000841 line2process4source-read-by-fetch2programsource4zpu#000000842 # REMEMBER TO MODIFY NECESSARY MODULES BEFORE TESTS !! line2process4source-read-by-fetch2programsource4zpu#000000843 line2process4source-read-by-fetch2programsource4zpu#000000844 from print4xi import Print4Xi # edit print4xi.py - embeds trace for the functions and classes to be tested line2process4source-read-by-fetch2programsource4zpu#000000845 from print4xi import print4xi # see OpenCl4Xi definitions in print4xi.py line2process4source-read-by-fetch2programsource4zpu#000000846 line2process4source-read-by-fetch2programsource4zpu#000000847 from pickle4xi import pickle4xi # edit corresponding pickle2?4xi.py line2process4source-read-by-fetch2programsource4zpu#000000848 from pickle2a4xi import Pickle2a4Xi line2process4source-read-by-fetch2programsource4zpu#000000849 from pickle2b4xi import Pickle2b4Xi line2process4source-read-by-fetch2programsource4zpu#000000850 from pickle2c4xi import Pickle2c4Xi line2process4source-read-by-fetch2programsource4zpu#000000851 from pickle2d4xi import Pickle2d4Xi line2process4source-read-by-fetch2programsource4zpu#000000852 from pickle2e4xi import Pickle2e4Xi line2process4source-read-by-fetch2programsource4zpu#000000853 from pickle2f4xi import Pickle2f4Xi line2process4source-read-by-fetch2programsource4zpu#000000854 from pickle2g4xi import Pickle2g4Xi line2process4source-read-by-fetch2programsource4zpu#000000855 from pickle2h4xi import Pickle2h4Xi line2process4source-read-by-fetch2programsource4zpu#000000856 from pickle2i4xi import Pickle2i4Xi line2process4source-read-by-fetch2programsource4zpu#000000857 from pickle2j4xi import Pickle2j4Xi line2process4source-read-by-fetch2programsource4zpu#000000858 from pickle2k4xi import Pickle2k4Xi line2process4source-read-by-fetch2programsource4zpu#000000859 from pickle2l4xi import Pickle2l4Xi line2process4source-read-by-fetch2programsource4zpu#000000860 from pickle2m4xi import Pickle2m4Xi line2process4source-read-by-fetch2programsource4zpu#000000861 from pickle2n4xi import Pickle2n4Xi line2process4source-read-by-fetch2programsource4zpu#000000862 from pickle2o4xi import Pickle2o4Xi line2process4source-read-by-fetch2programsource4zpu#000000863 from pickle2p4xi import Pickle2p4Xi line2process4source-read-by-fetch2programsource4zpu#000000864 from pickle2q4xi import Pickle2q4Xi line2process4source-read-by-fetch2programsource4zpu#000000865 from pickle2r4xi import Pickle2r4Xi line2process4source-read-by-fetch2programsource4zpu#000000866 from pickle2s4xi import Pickle2s4Xi line2process4source-read-by-fetch2programsource4zpu#000000867 from pickle2t4xi import Pickle2t4Xi line2process4source-read-by-fetch2programsource4zpu#000000868 from pickle2u4xi import Pickle2u4Xi line2process4source-read-by-fetch2programsource4zpu#000000869 from pickle2v4xi import Pickle2v4Xi line2process4source-read-by-fetch2programsource4zpu#000000870 from pickle2w4xi import Pickle2w4Xi line2process4source-read-by-fetch2programsource4zpu#000000871 from pickle2x4xi import Pickle2x4Xi line2process4source-read-by-fetch2programsource4zpu#000000872 from pickle2y4xi import Pickle2y4Xi line2process4source-read-by-fetch2programsource4zpu#000000873 from pickle2z4xi import Pickle2z4Xi line2process4source-read-by-fetch2programsource4zpu#000000874 from pickle2_4xi import Pickle2_4Xi line2process4source-read-by-fetch2programsource4zpu#000000875 line2process4source-read-by-fetch2programsource4zpu#000000876 line2process4source-read-by-fetch2programsource4zpu#000000877 from actor2a4xi import Actor2a4Xi # define functions and class for zapping line2process4source-read-by-fetch2programsource4zpu#000000878 from actor2b4xi import Actor2b4Xi # not necessary for testing but got to be done later on! line2process4source-read-by-fetch2programsource4zpu#000000879 from actor2c4xi import Actor2c4Xi line2process4source-read-by-fetch2programsource4zpu#000000880 from actor2d4xi import Actor2d4Xi line2process4source-read-by-fetch2programsource4zpu#000000881 from actor2e4xi import Actor2e4Xi line2process4source-read-by-fetch2programsource4zpu#000000882 from actor2f4xi import Actor2f4Xi line2process4source-read-by-fetch2programsource4zpu#000000883 from actor2g4xi import Actor2g4Xi line2process4source-read-by-fetch2programsource4zpu#000000884 from actor2h4xi import Actor2h4Xi line2process4source-read-by-fetch2programsource4zpu#000000885 from actor2i4xi import Actor2i4Xi line2process4source-read-by-fetch2programsource4zpu#000000886 from actor2j4xi import Actor2j4Xi line2process4source-read-by-fetch2programsource4zpu#000000887 from actor2k4xi import Actor2k4Xi line2process4source-read-by-fetch2programsource4zpu#000000888 from actor2l4xi import Actor2l4Xi line2process4source-read-by-fetch2programsource4zpu#000000889 from actor2m4xi import Actor2m4Xi line2process4source-read-by-fetch2programsource4zpu#000000890 from actor2n4xi import Actor2n4Xi line2process4source-read-by-fetch2programsource4zpu#000000891 from actor2o4xi import Actor2o4Xi line2process4source-read-by-fetch2programsource4zpu#000000892 from actor2p4xi import Actor2p4Xi line2process4source-read-by-fetch2programsource4zpu#000000893 from actor2q4xi import Actor2q4Xi line2process4source-read-by-fetch2programsource4zpu#000000894 from actor2r4xi import Actor2r4Xi line2process4source-read-by-fetch2programsource4zpu#000000895 from actor2s4xi import Actor2s4Xi line2process4source-read-by-fetch2programsource4zpu#000000896 from actor2t4xi import Actor2t4Xi line2process4source-read-by-fetch2programsource4zpu#000000897 from actor2u4xi import Actor2u4Xi line2process4source-read-by-fetch2programsource4zpu#000000898 from actor2v4xi import Actor2v4Xi line2process4source-read-by-fetch2programsource4zpu#000000899 from actor2w4xi import Actor2w4Xi line2process4source-read-by-fetch2programsource4zpu#000000900 from actor2x4xi import Actor2x4Xi line2process4source-read-by-fetch2programsource4zpu#000000901 from actor2y4xi import Actor2y4Xi line2process4source-read-by-fetch2programsource4zpu#000000902 from actor2z4xi import Actor2z4Xi line2process4source-read-by-fetch2programsource4zpu#000000903 from actor2_4xi import Actor2_4Xi line2process4source-read-by-fetch2programsource4zpu#000000904 from time4xi import time4xi # time stamp to events line2process4source-read-by-fetch2programsource4zpu#000000905 line2process4source-read-by-fetch2programsource4zpu#000000906 from xml_trace_sense4xi import xml_trace_sense4xi # XML trace line2process4source-read-by-fetch2programsource4zpu#000000907 from xml_trace_reason4xi import xml_trace_reason4xi line2process4source-read-by-fetch2programsource4zpu#000000908 from xml_trace_ace4xi import xml_trace_ace4xi line2process4source-read-by-fetch2programsource4zpu#000000909 #" line2process4source-read-by-fetch2programsource4zpu#000000910 #/ line2process4source-read-by-fetch2programsource4zpu#000000911 line2process4source-read-by-fetch2programsource4zpu#000000912 line2process4source-read-by-fetch2programsource4zpu#000000913 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000914 # Global constants line2process4source-read-by-fetch2programsource4zpu#000000915 # ------------------------------------------------------------------------------------------------ line2process4source-read-by-fetch2programsource4zpu#000000916 #globalize4xi globalization = " line2process4source-read-by-fetch2programsource4zpu#000000917 line2process4source-read-by-fetch2programsource4zpu#000000918 global PickleKB4Xi line2process4source-read-by-fetch2programsource4zpu#000000919 line2process4source-read-by-fetch2programsource4zpu#000000920 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000921 # Settings line2process4source-read-by-fetch2programsource4zpu#000000922 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000923 #set4xi setting = " line2process4source-read-by-fetch2programsource4zpu#000000924 PickleKB4Xi = { line2process4source-read-by-fetch2programsource4zpu#000000925 'a': Pickle2a4Xi, line2process4source-read-by-fetch2programsource4zpu#000000926 # line2process4source-read-by-fetch2programsource4zpu#000000927 'b': Pickle2b4Xi, line2process4source-read-by-fetch2programsource4zpu#000000928 # line2process4source-read-by-fetch2programsource4zpu#000000929 'c': Pickle2c4Xi, line2process4source-read-by-fetch2programsource4zpu#000000930 # line2process4source-read-by-fetch2programsource4zpu#000000931 'd': Pickle2d4Xi, line2process4source-read-by-fetch2programsource4zpu#000000932 # line2process4source-read-by-fetch2programsource4zpu#000000933 'e': Pickle2e4Xi, line2process4source-read-by-fetch2programsource4zpu#000000934 'f': Pickle2f4Xi, line2process4source-read-by-fetch2programsource4zpu#000000935 'g': Pickle2g4Xi, line2process4source-read-by-fetch2programsource4zpu#000000936 'h': Pickle2h4Xi, line2process4source-read-by-fetch2programsource4zpu#000000937 'i': Pickle2i4Xi, line2process4source-read-by-fetch2programsource4zpu#000000938 'j': Pickle2j4Xi, line2process4source-read-by-fetch2programsource4zpu#000000939 'k': Pickle2k4Xi, line2process4source-read-by-fetch2programsource4zpu#000000940 'l': Pickle2l4Xi, line2process4source-read-by-fetch2programsource4zpu#000000941 'm': Pickle2m4Xi, line2process4source-read-by-fetch2programsource4zpu#000000942 'n': Pickle2n4Xi, line2process4source-read-by-fetch2programsource4zpu#000000943 'o': Pickle2o4Xi, line2process4source-read-by-fetch2programsource4zpu#000000944 'p': Pickle2p4Xi, line2process4source-read-by-fetch2programsource4zpu#000000945 'q': Pickle2q4Xi, line2process4source-read-by-fetch2programsource4zpu#000000946 'r': Pickle2r4Xi, line2process4source-read-by-fetch2programsource4zpu#000000947 's': Pickle2s4Xi, line2process4source-read-by-fetch2programsource4zpu#000000948 't': Pickle2t4Xi, line2process4source-read-by-fetch2programsource4zpu#000000949 'u': Pickle2u4Xi, line2process4source-read-by-fetch2programsource4zpu#000000950 'v': Pickle2v4Xi, line2process4source-read-by-fetch2programsource4zpu#000000951 'w': Pickle2w4Xi, line2process4source-read-by-fetch2programsource4zpu#000000952 'x': Pickle2x4Xi, line2process4source-read-by-fetch2programsource4zpu#000000953 'y': Pickle2y4Xi, line2process4source-read-by-fetch2programsource4zpu#000000954 'z': Pickle2z4Xi, line2process4source-read-by-fetch2programsource4zpu#000000955 '_': Pickle2_4Xi} line2process4source-read-by-fetch2programsource4zpu#000000956 #" line2process4source-read-by-fetch2programsource4zpu#000000957 #"/ line2process4source-read-by-fetch2programsource4zpu#000000958 line2process4source-read-by-fetch2programsource4zpu#000000959 line2process4source-read-by-fetch2programsource4zpu#000000960 # ---------------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000961 #function4xi function = "set2trace4xi" usage = "setting trace using definitions in pickle4xi functions ! line2process4source-read-by-fetch2programsource4zpu#000000962 #" line2process4source-read-by-fetch2programsource4zpu#000000963 # ---------------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000964 def set2trace4xi(): line2process4source-read-by-fetch2programsource4zpu#000000965 global t2xi line2process4source-read-by-fetch2programsource4zpu#000000966 global trace_object_count line2process4source-read-by-fetch2programsource4zpu#000000967 global PickleKB4Xi line2process4source-read-by-fetch2programsource4zpu#000000968 line2process4source-read-by-fetch2programsource4zpu#000000969 # print("(Step 0A/33) OF SET2TRACE4XI - STARTING SETTING TRACE BASED ON TRACE SETTINGS IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) line2process4source-read-by-fetch2programsource4zpu#000000970 # print("(Step 0B/33) OF SET2TRACE4XI - USING T2XI: ", t2xi) line2process4source-read-by-fetch2programsource4zpu#000000971 # print4xi.Print4Xi object at 0x0000000003715080 line2process4source-read-by-fetch2programsource4zpu#000000972 line2process4source-read-by-fetch2programsource4zpu#000000973 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000974 # A, B .... _ line2process4source-read-by-fetch2programsource4zpu#000000975 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000976 keys2pickledb = sorted(PickleKB4Xi.keys()) line2process4source-read-by-fetch2programsource4zpu#000000977 for key2pickledb in keys2pickledb: line2process4source-read-by-fetch2programsource4zpu#000000978 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000979 # LETTERS line2process4source-read-by-fetch2programsource4zpu#000000980 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000981 # print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000000982 # print("STARTING LETTER : ", key2pickledb) line2process4source-read-by-fetch2programsource4zpu#000000983 # print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000000984 line2process4source-read-by-fetch2programsource4zpu#000000985 dictionary2pickle = PickleKB4Xi[key2pickledb] line2process4source-read-by-fetch2programsource4zpu#000000986 # print("STARTING DICTIONARY: ", dictionary2pickle) line2process4source-read-by-fetch2programsource4zpu#000000987 # print('~' *33) line2process4source-read-by-fetch2programsource4zpu#000000988 # line2process4source-read-by-fetch2programsource4zpu#000000989 keys2dictionary = sorted(dictionary2pickle.keys()) line2process4source-read-by-fetch2programsource4zpu#000000990 line2process4source-read-by-fetch2programsource4zpu#000000991 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000992 # line2process4source-read-by-fetch2programsource4zpu#000000993 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000994 for key2dictionary in keys2dictionary: line2process4source-read-by-fetch2programsource4zpu#000000995 # ------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000996 # DICTIONARY line2process4source-read-by-fetch2programsource4zpu#000000997 # ------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000000998 # print('~' *33) line2process4source-read-by-fetch2programsource4zpu#000000999 object2pickle = key2dictionary line2process4source-read-by-fetch2programsource4zpu#000001000 # print("STARTING OBJECT: ", object2pickle) line2process4source-read-by-fetch2programsource4zpu#000001001 # print('~' *33) line2process4source-read-by-fetch2programsource4zpu#000001002 # pickle4xi(object2pickle) line2process4source-read-by-fetch2programsource4zpu#000001003 # print('~' *33) line2process4source-read-by-fetch2programsource4zpu#000001004 # print("PICKLED object: ", object2pickle) line2process4source-read-by-fetch2programsource4zpu#000001005 # PICKLED object: _C4Xi, line2process4source-read-by-fetch2programsource4zpu#000001006 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001007 # Mark those with NACK4XI to be traced ! line2process4source-read-by-fetch2programsource4zpu#000001008 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001009 if dictionary2pickle[key2dictionary] == 'NACK4XI': line2process4source-read-by-fetch2programsource4zpu#000001010 set_param2xi = True line2process4source-read-by-fetch2programsource4zpu#000001011 key_param = object2pickle line2process4source-read-by-fetch2programsource4zpu#000001012 t2xi.set_print_permission(key_param, set_param2xi) line2process4source-read-by-fetch2programsource4zpu#000001013 # print("(Step 2A/33) OF SET2TRACE4XI - MARKED TO BE TRACED OBJECT: ", object2pickle) line2process4source-read-by-fetch2programsource4zpu#000001014 # line2process4source-read-by-fetch2programsource4zpu#000001015 else: line2process4source-read-by-fetch2programsource4zpu#000001016 pass line2process4source-read-by-fetch2programsource4zpu#000001017 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001018 # END OF DICTIONARY line2process4source-read-by-fetch2programsource4zpu#000001019 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001020 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001021 # END OF LETTERS line2process4source-read-by-fetch2programsource4zpu#000001022 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001023 # print('~' *33) line2process4source-read-by-fetch2programsource4zpu#000001024 # print("COMPLETED DICTIONARY: ", dictionary2pickle) line2process4source-read-by-fetch2programsource4zpu#000001025 # print('~' *33) line2process4source-read-by-fetch2programsource4zpu#000001026 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001027 # line2process4source-read-by-fetch2programsource4zpu#000001028 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001029 # print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001030 # print("COMPLETED LETTER : ", key2pickledb) line2process4source-read-by-fetch2programsource4zpu#000001031 # print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001032 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001033 # line2process4source-read-by-fetch2programsource4zpu#000001034 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001035 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001036 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-fetch2programsource4zpu#000001037 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001038 #/function4xi line2process4source-read-by-fetch2programsource4zpu#000001039 line2process4source-read-by-fetch2programsource4zpu#000001040 line2process4source-read-by-fetch2programsource4zpu#000001041 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001042 #function4xi function = "deny2trace4xi" usage = " line2process4source-read-by-fetch2programsource4zpu#000001043 # deny trace using pickle4xi functions ! line2process4source-read-by-fetch2programsource4zpu#000001044 #" line2process4source-read-by-fetch2programsource4zpu#000001045 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001046 def deny2trace4xi(): line2process4source-read-by-fetch2programsource4zpu#000001047 global t2xi line2process4source-read-by-fetch2programsource4zpu#000001048 global trace_object_count line2process4source-read-by-fetch2programsource4zpu#000001049 global PickleKB4Xi line2process4source-read-by-fetch2programsource4zpu#000001050 line2process4source-read-by-fetch2programsource4zpu#000001051 print("(Step 01A/33) of DENY2TRACE4XI: STARTING DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001052 print("(Step 01B/33) OF DENY2TRACE4XI - USING T2XI: ", t2xi) line2process4source-read-by-fetch2programsource4zpu#000001053 # print4xi.Print4Xi object at 0x0000000003715080 line2process4source-read-by-fetch2programsource4zpu#000001054 line2process4source-read-by-fetch2programsource4zpu#000001055 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001056 # A, B .... _ line2process4source-read-by-fetch2programsource4zpu#000001057 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001058 keys2pickledb = sorted(PickleKB4Xi.keys()) line2process4source-read-by-fetch2programsource4zpu#000001059 for key2pickledb in keys2pickledb: line2process4source-read-by-fetch2programsource4zpu#000001060 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001061 # LETTERS line2process4source-read-by-fetch2programsource4zpu#000001062 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001063 # print("(Step 02A/33) OF DENY2TRACE4XI - STARTING LETTER : ", key2pickledb) line2process4source-read-by-fetch2programsource4zpu#000001064 dictionary2pickle = PickleKB4Xi[key2pickledb] line2process4source-read-by-fetch2programsource4zpu#000001065 # print("(Step 02B/33) OF DENY2TRACE4XI - STARTING DICTIONARY: ", dictionary2pickle) line2process4source-read-by-fetch2programsource4zpu#000001066 keys2dictionary = sorted(dictionary2pickle.keys()) line2process4source-read-by-fetch2programsource4zpu#000001067 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001068 # line2process4source-read-by-fetch2programsource4zpu#000001069 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001070 for key2dictionary in keys2dictionary: line2process4source-read-by-fetch2programsource4zpu#000001071 line2process4source-read-by-fetch2programsource4zpu#000001072 # ------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001073 # DICTIONARY line2process4source-read-by-fetch2programsource4zpu#000001074 line2process4source-read-by-fetch2programsource4zpu#000001075 object2pickle = key2dictionary line2process4source-read-by-fetch2programsource4zpu#000001076 # print("(Step 02C/33) OF DENY2TRACE4XI - STARTING OBJECT: ", object2pickle) line2process4source-read-by-fetch2programsource4zpu#000001077 # pickle4xi(object2pickle) line2process4source-read-by-fetch2programsource4zpu#000001078 # print("STEP: PICKLED object: ", object2pickle) line2process4source-read-by-fetch2programsource4zpu#000001079 # PICKLED object: _C4Xi, line2process4source-read-by-fetch2programsource4zpu#000001080 line2process4source-read-by-fetch2programsource4zpu#000001081 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001082 # ACK4XI = tested .i.e. NOT to be traced! line2process4source-read-by-fetch2programsource4zpu#000001083 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001084 set_param2xi = 'ACK4XI' line2process4source-read-by-fetch2programsource4zpu#000001085 key_param = object2pickle line2process4source-read-by-fetch2programsource4zpu#000001086 t2xi.set_print_permission(key_param, set_param2xi) line2process4source-read-by-fetch2programsource4zpu#000001087 # print("(Step 02D/33) OF DENY2TRACE4XI - MARKED TESTED AND NOT to be traced: ", object2pickle) line2process4source-read-by-fetch2programsource4zpu#000001088 line2process4source-read-by-fetch2programsource4zpu#000001089 dictionary2pickle[key2dictionary] = 'ACK4XI' line2process4source-read-by-fetch2programsource4zpu#000001090 line2process4source-read-by-fetch2programsource4zpu#000001091 line2process4source-read-by-fetch2programsource4zpu#000001092 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001093 # END OF DICTIONARY line2process4source-read-by-fetch2programsource4zpu#000001094 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001095 # print('~' *33) line2process4source-read-by-fetch2programsource4zpu#000001096 # print("(Step 02Z/33) OF DENY2TRACE4XI *** FAILED - ERROR IN PICKLING OBJECT - NOT TO BE TRACED: ", object2pickle) line2process4source-read-by-fetch2programsource4zpu#000001097 # print('~' *33) line2process4source-read-by-fetch2programsource4zpu#000001098 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001099 # END OF LETTERS line2process4source-read-by-fetch2programsource4zpu#000001100 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001101 # print("(Step 02E/33) OF DENY2TRACE4XI - COMPLETED DICTIONARY: ", dictionary2pickle) line2process4source-read-by-fetch2programsource4zpu#000001102 # line2process4source-read-by-fetch2programsource4zpu#000001103 line2process4source-read-by-fetch2programsource4zpu#000001104 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001105 # line2process4source-read-by-fetch2programsource4zpu#000001106 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001107 # print("(Step 02F/33) OF DENY2TRACE4XI - COMPLETED LETTER : ", key2pickledb) line2process4source-read-by-fetch2programsource4zpu#000001108 # _, a ... z line2process4source-read-by-fetch2programsource4zpu#000001109 print("(Step 033/33) OF SET2TRACE4XI - COMPLETED DENYING TRACE IN MODULES PICKLE2x4XI.PY (x=a,b...) ", time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001110 #/function4xi line2process4source-read-by-fetch2programsource4zpu#000001111 line2process4source-read-by-fetch2programsource4zpu#000001112 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001113 #function4xi function = "tailor2trace4xi" usage = " line2process4source-read-by-fetch2programsource4zpu#000001114 # tailors trace line2process4source-read-by-fetch2programsource4zpu#000001115 #" line2process4source-read-by-fetch2programsource4zpu#000001116 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001117 def tailor2trace4xi(): line2process4source-read-by-fetch2programsource4zpu#000001118 global trace_object_count line2process4source-read-by-fetch2programsource4zpu#000001119 global PickleKB4Xi line2process4source-read-by-fetch2programsource4zpu#000001120 global t2xi line2process4source-read-by-fetch2programsource4zpu#000001121 line2process4source-read-by-fetch2programsource4zpu#000001122 print("(Step 001A/33) OF TAILOR2TRACE4XI - USING T2XI: ", t2xi) line2process4source-read-by-fetch2programsource4zpu#000001123 # print4xi.Print4Xi object at 0x0000000003715080 line2process4source-read-by-fetch2programsource4zpu#000001124 line2process4source-read-by-fetch2programsource4zpu#000001125 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001126 # Settings to tailor trace line2process4source-read-by-fetch2programsource4zpu#000001127 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001128 #set4xi setting = " line2process4source-read-by-fetch2programsource4zpu#000001129 KB4Tailoring = { line2process4source-read-by-fetch2programsource4zpu#000001130 'ZPU2Sampler4Xi': 'NACK4XI', line2process4source-read-by-fetch2programsource4zpu#000001131 'create2sampler4zpu': 'NACK4XI', line2process4source-read-by-fetch2programsource4zpu#000001132 'get2samplerinfo4zpu': 'NACK4XI', line2process4source-read-by-fetch2programsource4zpu#000001133 'retain2sampler4zpu': 'NACK4XI', line2process4source-read-by-fetch2programsource4zpu#000001134 'release2sampler4zpu': 'NACK4XI', line2process4source-read-by-fetch2programsource4zpu#000001135 'trace2sampler4zpu': 'NACK4XI', line2process4source-read-by-fetch2programsource4zpu#000001136 'set2samplercallback4zpu': 'NACK4XI', line2process4source-read-by-fetch2programsource4zpu#000001137 'set2sampler4zpu': 'NACK4XI' line2process4source-read-by-fetch2programsource4zpu#000001138 } line2process4source-read-by-fetch2programsource4zpu#000001139 line2process4source-read-by-fetch2programsource4zpu#000001140 default3trace = 'NACK4TRACE' # we do NOT want trace if object is not found! line2process4source-read-by-fetch2programsource4zpu#000001141 #"/ line2process4source-read-by-fetch2programsource4zpu#000001142 line2process4source-read-by-fetch2programsource4zpu#000001143 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001144 # PROCESS KB4Tailoring line2process4source-read-by-fetch2programsource4zpu#000001145 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001146 keys2tailor = sorted(KB4Tailoring.keys()) line2process4source-read-by-fetch2programsource4zpu#000001147 for key2tailor in keys2tailor: line2process4source-read-by-fetch2programsource4zpu#000001148 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001149 # NACK4XI = NOT TESTED .I.E. TO BE TRACED! line2process4source-read-by-fetch2programsource4zpu#000001150 # --------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001151 set_param2xi = 'NACK4XI' line2process4source-read-by-fetch2programsource4zpu#000001152 key_param = key2tailor line2process4source-read-by-fetch2programsource4zpu#000001153 t2xi.set_print_permission(key_param, set_param2xi) line2process4source-read-by-fetch2programsource4zpu#000001154 print("(Step 002A/33) OF TAILOR_TRACE4XI - MARKED TO BE TESTED: ", key2tailor) line2process4source-read-by-fetch2programsource4zpu#000001155 # line2process4source-read-by-fetch2programsource4zpu#000001156 line2process4source-read-by-fetch2programsource4zpu#000001157 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001158 # EOF KEYS line2process4source-read-by-fetch2programsource4zpu#000001159 # ----------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001160 print("(Step 0033/33) OF TAILOR_TRACE4XI - COMPLETED TAILORING: ", time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001161 # line2process4source-read-by-fetch2programsource4zpu#000001162 line2process4source-read-by-fetch2programsource4zpu#000001163 #/function4xi line2process4source-read-by-fetch2programsource4zpu#000001164 line2process4source-read-by-fetch2programsource4zpu#000001165 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001166 #function4xi function = "print-trace4xi" usage = " line2process4source-read-by-fetch2programsource4zpu#000001167 # print XML trace for sampler4zpu test line2process4source-read-by-fetch2programsource4zpu#000001168 #" line2process4source-read-by-fetch2programsource4zpu#000001169 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001170 def print2trace4xi(t2xi): line2process4source-read-by-fetch2programsource4zpu#000001171 line2process4source-read-by-fetch2programsource4zpu#000001172 line2process4source-read-by-fetch2programsource4zpu#000001173 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001174 # SENSE line2process4source-read-by-fetch2programsource4zpu#000001175 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001176 line2process4source-read-by-fetch2programsource4zpu#000001177 context2sense = { line2process4source-read-by-fetch2programsource4zpu#000001178 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\sense-zpu2sampler4xi5test.xml', line2process4source-read-by-fetch2programsource4zpu#000001179 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', line2process4source-read-by-fetch2programsource4zpu#000001180 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', line2process4source-read-by-fetch2programsource4zpu#000001181 'ontology_about4xi': ' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\n', line2process4source-read-by-fetch2programsource4zpu#000001182 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\n', line2process4source-read-by-fetch2programsource4zpu#000001183 'class0_id4xi': ' owl:Class rdf:ID="Dragon4Xi#000000"\n', line2process4source-read-by-fetch2programsource4zpu#000001184 'class0_comment4xi': ' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\n', line2process4source-read-by-fetch2programsource4zpu#000001185 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="sensed#000000"\n', line2process4source-read-by-fetch2programsource4zpu#000001186 'object_property_comment4xi': ' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\n', line2process4source-read-by-fetch2programsource4zpu#000001187 'debug4xi': True} line2process4source-read-by-fetch2programsource4zpu#000001188 line2process4source-read-by-fetch2programsource4zpu#000001189 xml_trace_sense4xi(t2xi, context2sense) line2process4source-read-by-fetch2programsource4zpu#000001190 line2process4source-read-by-fetch2programsource4zpu#000001191 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001192 # REASON line2process4source-read-by-fetch2programsource4zpu#000001193 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001194 line2process4source-read-by-fetch2programsource4zpu#000001195 context2reason = { line2process4source-read-by-fetch2programsource4zpu#000001196 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\reason-zpu2sampler4xi5test.xml', line2process4source-read-by-fetch2programsource4zpu#000001197 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', line2process4source-read-by-fetch2programsource4zpu#000001198 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', line2process4source-read-by-fetch2programsource4zpu#000001199 'ontology_about4xi': ' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\n', line2process4source-read-by-fetch2programsource4zpu#000001200 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Operations/rdfs:comment\n', line2process4source-read-by-fetch2programsource4zpu#000001201 'operation_comment4xi': ' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\n', line2process4source-read-by-fetch2programsource4zpu#000001202 'class0_id4xi': ' owl:Class rdf:ID="reasoned#000000"\n', line2process4source-read-by-fetch2programsource4zpu#000001203 'class0_comment4xi': ' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\n', line2process4source-read-by-fetch2programsource4zpu#000001204 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="reason#000000"\n', line2process4source-read-by-fetch2programsource4zpu#000001205 'object_property_comment4xi': ' rdfs:comment xml:lang="en"reason/rdfs:comment\n', line2process4source-read-by-fetch2programsource4zpu#000001206 'debug4xi': True} line2process4source-read-by-fetch2programsource4zpu#000001207 line2process4source-read-by-fetch2programsource4zpu#000001208 xml_trace_reason4xi(t2xi, context2reason) line2process4source-read-by-fetch2programsource4zpu#000001209 line2process4source-read-by-fetch2programsource4zpu#000001210 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001211 # ACE line2process4source-read-by-fetch2programsource4zpu#000001212 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001213 line2process4source-read-by-fetch2programsource4zpu#000001214 context2ace = { line2process4source-read-by-fetch2programsource4zpu#000001215 'file_path4xi': 'E:\\scope4xi\\041721\\zap\\web\\xml\\ace-zpu2sampler4xi5test.xml', line2process4source-read-by-fetch2programsource4zpu#000001216 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', line2process4source-read-by-fetch2programsource4zpu#000001217 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\n', line2process4source-read-by-fetch2programsource4zpu#000001218 'ontology_about4xi': ' owl:Ontology rdf:about="Acing of OpenCl4Xi"\n', line2process4source-read-by-fetch2programsource4zpu#000001219 'ontology_comment4xi': ' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\n', line2process4source-read-by-fetch2programsource4zpu#000001220 'class0_id4xi': ' owl:Class rdf:ID="ACE4Xi#0000000"\n', line2process4source-read-by-fetch2programsource4zpu#000001221 'class0_comment4xi': ' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\n', line2process4source-read-by-fetch2programsource4zpu#000001222 'object_property_rdf4xi': ' owl:ObjectProperty rdf:ID="ace#0000000"\n', line2process4source-read-by-fetch2programsource4zpu#000001223 'object_property_comment4xi': ' rdfs:comment xml:lang="en"000000/rdfs:comment\n', line2process4source-read-by-fetch2programsource4zpu#000001224 'debug4xi': True} line2process4source-read-by-fetch2programsource4zpu#000001225 line2process4source-read-by-fetch2programsource4zpu#000001226 xml_trace_ace4xi(t2xi, context2ace) line2process4source-read-by-fetch2programsource4zpu#000001227 line2process4source-read-by-fetch2programsource4zpu#000001228 line2process4source-read-by-fetch2programsource4zpu#000001229 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001230 # end of print2trace4xi line2process4source-read-by-fetch2programsource4zpu#000001231 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001232 #/function4xi line2process4source-read-by-fetch2programsource4zpu#000001233 line2process4source-read-by-fetch2programsource4zpu#000001234 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001235 #function4xi function = "zpu2sampler4xi5test" usage = " line2process4source-read-by-fetch2programsource4zpu#000001236 # tests sampler4zpu line2process4source-read-by-fetch2programsource4zpu#000001237 #" line2process4source-read-by-fetch2programsource4zpu#000001238 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001239 def zpu2sampler4xi5test(): line2process4source-read-by-fetch2programsource4zpu#000001240 global t2xi line2process4source-read-by-fetch2programsource4zpu#000001241 global trace_object_count line2process4source-read-by-fetch2programsource4zpu#000001242 line2process4source-read-by-fetch2programsource4zpu#000001243 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001244 # INITIALIZE TRACE line2process4source-read-by-fetch2programsource4zpu#000001245 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001246 t2xi = Print4Xi() line2process4source-read-by-fetch2programsource4zpu#000001247 set2trace4xi() # trace all classes and functions in the system line2process4source-read-by-fetch2programsource4zpu#000001248 deny2trace4xi() # deny trace for all classes and functions in the system line2process4source-read-by-fetch2programsource4zpu#000001249 tailor2trace4xi() # tailor trace for this test line2process4source-read-by-fetch2programsource4zpu#000001250 line2process4source-read-by-fetch2programsource4zpu#000001251 try: line2process4source-read-by-fetch2programsource4zpu#000001252 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001253 # START TESTING line2process4source-read-by-fetch2programsource4zpu#000001254 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001255 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001256 print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001257 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001258 # line2process4source-read-by-fetch2programsource4zpu#000001259 line2process4source-read-by-fetch2programsource4zpu#000001260 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001261 # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION line2process4source-read-by-fetch2programsource4zpu#000001262 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001263 print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001264 try: line2process4source-read-by-fetch2programsource4zpu#000001265 response4create2sampler = create2sampler4zpu() line2process4source-read-by-fetch2programsource4zpu#000001266 keys2response = response4create2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001267 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001268 print(key2response, ' : ', response4create2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001269 # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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-fetch2programsource4zpu#000001270 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4zpu#000001271 # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ... line2process4source-read-by-fetch2programsource4zpu#000001272 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4zpu#000001273 # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... line2process4source-read-by-fetch2programsource4zpu#000001274 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ... line2process4source-read-by-fetch2programsource4zpu#000001275 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001276 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed line2process4source-read-by-fetch2programsource4zpu#000001277 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... line2process4source-read-by-fetch2programsource4zpu#000001278 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... line2process4source-read-by-fetch2programsource4zpu#000001279 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4zpu#000001280 # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039A76C8 line2process4source-read-by-fetch2programsource4zpu#000001281 # NACK2RETURN : line2process4source-read-by-fetch2programsource4zpu#000001282 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4zpu#000001283 # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) line2process4source-read-by-fetch2programsource4zpu#000001284 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4zpu#000001285 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B3D0B8 line2process4source-read-by-fetch2programsource4zpu#000001286 except: line2process4source-read-by-fetch2programsource4zpu#000001287 print('(Step 2Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001288 line2process4source-read-by-fetch2programsource4zpu#000001289 line2process4source-read-by-fetch2programsource4zpu#000001290 line2process4source-read-by-fetch2programsource4zpu#000001291 line2process4source-read-by-fetch2programsource4zpu#000001292 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001293 # PHASE I: FUNCTION TESTS - GET SAMPLER INFO WITH FUNCTION line2process4source-read-by-fetch2programsource4zpu#000001294 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001295 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001296 print('(Step 3B1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001297 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001298 task4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001299 task4getinfo2sampler ['NORMALIZATION'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001300 task4getinfo2sampler ['ADDRESSINGMODE'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001301 task4getinfo2sampler ['FILTERINGMODE'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001302 try: line2process4source-read-by-fetch2programsource4zpu#000001303 response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) line2process4source-read-by-fetch2programsource4zpu#000001304 print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001305 keys2response = response4samplerinfo2zpu.keys() line2process4source-read-by-fetch2programsource4zpu#000001306 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001307 print(key2response, ' : ', response4samplerinfo2zpu[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001308 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4zpu#000001309 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4zpu#000001310 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4zpu#000001311 line2process4source-read-by-fetch2programsource4zpu#000001312 except: line2process4source-read-by-fetch2programsource4zpu#000001313 print('(Step 3Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001314 line2process4source-read-by-fetch2programsource4zpu#000001315 line2process4source-read-by-fetch2programsource4zpu#000001316 line2process4source-read-by-fetch2programsource4zpu#000001317 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001318 print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001319 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001320 try: line2process4source-read-by-fetch2programsource4zpu#000001321 response4getinfo2sampler = get2samplerinfo4zpu() line2process4source-read-by-fetch2programsource4zpu#000001322 keys2response = response4getinfo2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001323 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001324 print(key2response, ' : ', response4getinfo2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001325 # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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-fetch2programsource4zpu#000001326 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4zpu#000001327 # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4zpu#000001328 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4zpu#000001329 # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4zpu#000001330 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'MESSAGE': line2process4source-read-by-fetch2programsource4zpu#000001331 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001332 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed line2process4source-read-by-fetch2programsource4zpu#000001333 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', line2process4source-read-by-fetch2programsource4zpu#000001334 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4zpu#000001335 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4zpu#000001336 # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4zpu#000001337 # NACK2RETURN : line2process4source-read-by-fetch2programsource4zpu#000001338 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4zpu#000001339 # PIPE : (read-write PipeConnection, handle 388, read-write PipeConnection, handle 392) line2process4source-read-by-fetch2programsource4zpu#000001340 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4zpu#000001341 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B020F0 line2process4source-read-by-fetch2programsource4zpu#000001342 except: line2process4source-read-by-fetch2programsource4zpu#000001343 print('(Step 3Z3/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001344 line2process4source-read-by-fetch2programsource4zpu#000001345 line2process4source-read-by-fetch2programsource4zpu#000001346 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001347 # PHASE I: FUNCTION TESTS - SET SAMPLER WITH FUNCTION - ALL ATTRIBUTES line2process4source-read-by-fetch2programsource4zpu#000001348 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001349 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001350 print('(Step 4A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER WITH FUNCTION ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001351 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001352 line2process4source-read-by-fetch2programsource4zpu#000001353 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001354 # (1) GET PLATFORM IDs TO SET CONTEXT line2process4source-read-by-fetch2programsource4zpu#000001355 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001356 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001357 print('(Step 4B/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET PLATFORMIDS4XI', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001358 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001359 platform2xi = {} line2process4source-read-by-fetch2programsource4zpu#000001360 try: line2process4source-read-by-fetch2programsource4zpu#000001361 platform2xi = get2platformids4xi() line2process4source-read-by-fetch2programsource4zpu#000001362 print('(Step 4B/33) OF ZPU2SAMPLER4XI5TEST - GOT PLATFORMIDS4XI', platform2xi) line2process4source-read-by-fetch2programsource4zpu#000001363 # {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4zpu#000001364 line2process4source-read-by-fetch2programsource4zpu#000001365 except: line2process4source-read-by-fetch2programsource4zpu#000001366 print('(Step 4Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET PLATFORMIDS4XI', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001367 line2process4source-read-by-fetch2programsource4zpu#000001368 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001369 # (2) INITIALIZE DEVICE line2process4source-read-by-fetch2programsource4zpu#000001370 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001371 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001372 print('(Step 2A/33) OF ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001373 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001374 try: line2process4source-read-by-fetch2programsource4zpu#000001375 device2zpu = init2zpu4xi() line2process4source-read-by-fetch2programsource4zpu#000001376 print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) line2process4source-read-by-fetch2programsource4zpu#000001377 # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... line2process4source-read-by-fetch2programsource4zpu#000001378 line2process4source-read-by-fetch2programsource4zpu#000001379 except: line2process4source-read-by-fetch2programsource4zpu#000001380 print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001381 line2process4source-read-by-fetch2programsource4zpu#000001382 line2process4source-read-by-fetch2programsource4zpu#000001383 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001384 # (3) CREATE CONTEXT line2process4source-read-by-fetch2programsource4zpu#000001385 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001386 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001387 print('(Step 3A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001388 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001389 try: line2process4source-read-by-fetch2programsource4zpu#000001390 context2zpu = create2context4zpu() line2process4source-read-by-fetch2programsource4zpu#000001391 print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) line2process4source-read-by-fetch2programsource4zpu#000001392 # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... line2process4source-read-by-fetch2programsource4zpu#000001393 line2process4source-read-by-fetch2programsource4zpu#000001394 except: line2process4source-read-by-fetch2programsource4zpu#000001395 print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001396 line2process4source-read-by-fetch2programsource4zpu#000001397 line2process4source-read-by-fetch2programsource4zpu#000001398 line2process4source-read-by-fetch2programsource4zpu#000001399 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001400 # (4) INITIALIZE TASK DICTIONARY line2process4source-read-by-fetch2programsource4zpu#000001401 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001402 task4set2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001403 line2process4source-read-by-fetch2programsource4zpu#000001404 line2process4source-read-by-fetch2programsource4zpu#000001405 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001406 # (5) DEFINE CONTEXT - REQUIRED line2process4source-read-by-fetch2programsource4zpu#000001407 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001408 task4set2sampler ['CONTEXT'] = context2zpu line2process4source-read-by-fetch2programsource4zpu#000001409 line2process4source-read-by-fetch2programsource4zpu#000001410 line2process4source-read-by-fetch2programsource4zpu#000001411 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001412 # (6) DEFINE DEVICE - EXTRA line2process4source-read-by-fetch2programsource4zpu#000001413 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001414 task4set2sampler ['DEVICE'] = device2zpu line2process4source-read-by-fetch2programsource4zpu#000001415 line2process4source-read-by-fetch2programsource4zpu#000001416 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001417 # (7) DEFINE PROPERTIES - NONE line2process4source-read-by-fetch2programsource4zpu#000001418 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001419 task4set2sampler ['PROPERTIES'] = None line2process4source-read-by-fetch2programsource4zpu#000001420 line2process4source-read-by-fetch2programsource4zpu#000001421 line2process4source-read-by-fetch2programsource4zpu#000001422 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001423 # (8) DEFINE ERROR CODE - REQUIRED line2process4source-read-by-fetch2programsource4zpu#000001424 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001425 task4set2sampler ['CODE2ERROR'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001426 line2process4source-read-by-fetch2programsource4zpu#000001427 line2process4source-read-by-fetch2programsource4zpu#000001428 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001429 # (9) SET QUEUE - EXTRA line2process4source-read-by-fetch2programsource4zpu#000001430 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001431 task4set2sampler ['QUEUE'] = None line2process4source-read-by-fetch2programsource4zpu#000001432 print('(Step 9A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001433 try: line2process4source-read-by-fetch2programsource4zpu#000001434 task4set2sampler ['QUEUE'] = Queue4Xi() line2process4source-read-by-fetch2programsource4zpu#000001435 print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) line2process4source-read-by-fetch2programsource4zpu#000001436 # queue4xi.Queue4Xi object at 0x0000000003B050F0 line2process4source-read-by-fetch2programsource4zpu#000001437 line2process4source-read-by-fetch2programsource4zpu#000001438 except: line2process4source-read-by-fetch2programsource4zpu#000001439 print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001440 line2process4source-read-by-fetch2programsource4zpu#000001441 line2process4source-read-by-fetch2programsource4zpu#000001442 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001443 # (10) SET PIPE - EXTRA line2process4source-read-by-fetch2programsource4zpu#000001444 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001445 task4set2sampler ['PIPE'] = None line2process4source-read-by-fetch2programsource4zpu#000001446 print('(Step 10A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001447 try: line2process4source-read-by-fetch2programsource4zpu#000001448 task4set2sampler ['PIPE'] = Pipe4Xi() line2process4source-read-by-fetch2programsource4zpu#000001449 print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', task4set2sampler ['PIPE']) line2process4source-read-by-fetch2programsource4zpu#000001450 # (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) line2process4source-read-by-fetch2programsource4zpu#000001451 line2process4source-read-by-fetch2programsource4zpu#000001452 except: line2process4source-read-by-fetch2programsource4zpu#000001453 print('(Step 10Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001454 line2process4source-read-by-fetch2programsource4zpu#000001455 line2process4source-read-by-fetch2programsource4zpu#000001456 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001457 # (11) SET REST line2process4source-read-by-fetch2programsource4zpu#000001458 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001459 task4set2sampler ['COMMANDQUEUE'] = None line2process4source-read-by-fetch2programsource4zpu#000001460 print('(Step 11A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001461 try: line2process4source-read-by-fetch2programsource4zpu#000001462 task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() line2process4source-read-by-fetch2programsource4zpu#000001463 print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) line2process4source-read-by-fetch2programsource4zpu#000001464 # line2process4source-read-by-fetch2programsource4zpu#000001465 task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' line2process4source-read-by-fetch2programsource4zpu#000001466 print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) line2process4source-read-by-fetch2programsource4zpu#000001467 # line2process4source-read-by-fetch2programsource4zpu#000001468 task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' line2process4source-read-by-fetch2programsource4zpu#000001469 print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) line2process4source-read-by-fetch2programsource4zpu#000001470 # line2process4source-read-by-fetch2programsource4zpu#000001471 task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' line2process4source-read-by-fetch2programsource4zpu#000001472 print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) line2process4source-read-by-fetch2programsource4zpu#000001473 # line2process4source-read-by-fetch2programsource4zpu#000001474 line2process4source-read-by-fetch2programsource4zpu#000001475 except: line2process4source-read-by-fetch2programsource4zpu#000001476 print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001477 line2process4source-read-by-fetch2programsource4zpu#000001478 line2process4source-read-by-fetch2programsource4zpu#000001479 line2process4source-read-by-fetch2programsource4zpu#000001480 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001481 # (11) SET SAMPLER - FINALLY! line2process4source-read-by-fetch2programsource4zpu#000001482 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001483 response4set2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001484 print('(Step 11F/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001485 try: line2process4source-read-by-fetch2programsource4zpu#000001486 response4set2sampler = set2sampler4zpu(task4set2sampler) line2process4source-read-by-fetch2programsource4zpu#000001487 line2process4source-read-by-fetch2programsource4zpu#000001488 keys2response = response4set2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001489 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001490 print(key2response, ' : ', response4set2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001491 # ACK2RETURN : 23B-24B-25B-26B-27B-28B-31B-32B-33B- line2process4source-read-by-fetch2programsource4zpu#000001492 # ADDRESSINGMODE : CL_ADDRESS_REPEAT line2process4source-read-by-fetch2programsource4zpu#000001493 # BUFFER : {'CODE2ERROR': 0 ... line2process4source-read-by-fetch2programsource4zpu#000001494 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4zpu#000001495 # COMMANDQUEUE : {'CODE2ERROR': 0, ... line2process4source-read-by-fetch2programsource4zpu#000001496 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... line2process4source-read-by-fetch2programsource4zpu#000001497 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001498 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed line2process4source-read-by-fetch2programsource4zpu#000001499 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... line2process4source-read-by-fetch2programsource4zpu#000001500 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... line2process4source-read-by-fetch2programsource4zpu#000001501 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4zpu#000001502 # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000038CF5C8 line2process4source-read-by-fetch2programsource4zpu#000001503 # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-34Z1- line2process4source-read-by-fetch2programsource4zpu#000001504 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4zpu#000001505 # PIPE : (read-write PipeConnection, handle 520, read-write PipeConnection, handle 524) line2process4source-read-by-fetch2programsource4zpu#000001506 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4zpu#000001507 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B53B00 line2process4source-read-by-fetch2programsource4zpu#000001508 line2process4source-read-by-fetch2programsource4zpu#000001509 line2process4source-read-by-fetch2programsource4zpu#000001510 except: line2process4source-read-by-fetch2programsource4zpu#000001511 print('(Step 11Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001512 line2process4source-read-by-fetch2programsource4zpu#000001513 line2process4source-read-by-fetch2programsource4zpu#000001514 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001515 # (12) REFERENCE COUNT FOR EACH PROCESSING UNIT RELEASED BY DECREMENTING COUNT WITH 1 line2process4source-read-by-fetch2programsource4zpu#000001516 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001517 line2process4source-read-by-fetch2programsource4zpu#000001518 task4release2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001519 task4release2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4zpu#000001520 response4release2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001521 line2process4source-read-by-fetch2programsource4zpu#000001522 print('(Step 12A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001523 # line2process4source-read-by-fetch2programsource4zpu#000001524 try: line2process4source-read-by-fetch2programsource4zpu#000001525 response4release2sampler = release2sampler4zpu(task4release2sampler) line2process4source-read-by-fetch2programsource4zpu#000001526 line2process4source-read-by-fetch2programsource4zpu#000001527 keys2response = response4release2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001528 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001529 print(key2response, ' : ', response4release2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001530 # COUNT2REFERENCE : 0 line2process4source-read-by-fetch2programsource4zpu#000001531 line2process4source-read-by-fetch2programsource4zpu#000001532 except: line2process4source-read-by-fetch2programsource4zpu#000001533 print('(Step 12Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001534 line2process4source-read-by-fetch2programsource4zpu#000001535 task4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001536 task4getinfo2sampler ['COUNT2REFERENCE'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001537 line2process4source-read-by-fetch2programsource4zpu#000001538 print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001539 # line2process4source-read-by-fetch2programsource4zpu#000001540 try: line2process4source-read-by-fetch2programsource4zpu#000001541 response4getinfo2sampler = get2samplerinfo4zpu (task4getinfo2sampler) line2process4source-read-by-fetch2programsource4zpu#000001542 keys2response = response4getinfo2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001543 line2process4source-read-by-fetch2programsource4zpu#000001544 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001545 print(key2response, ' : ', response4getinfo2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001546 # COUNT2REFERENCE : 0 line2process4source-read-by-fetch2programsource4zpu#000001547 line2process4source-read-by-fetch2programsource4zpu#000001548 except: line2process4source-read-by-fetch2programsource4zpu#000001549 print('(Step 12Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001550 line2process4source-read-by-fetch2programsource4zpu#000001551 line2process4source-read-by-fetch2programsource4zpu#000001552 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001553 # (13) REFERENCE COUNT FOR EACH PROCESSING UNIT RETAINED BY INCREMENTING COUNT WITH 1 line2process4source-read-by-fetch2programsource4zpu#000001554 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001555 task4retain2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001556 task4retain2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4zpu#000001557 response4retain2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001558 print('(Step 13A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001559 try: line2process4source-read-by-fetch2programsource4zpu#000001560 response4retain2sampler = retain2sampler4zpu(task4retain2sampler) line2process4source-read-by-fetch2programsource4zpu#000001561 line2process4source-read-by-fetch2programsource4zpu#000001562 keys2response = response4retain2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001563 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001564 print(key2response, ' : ', response4retain2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001565 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001566 line2process4source-read-by-fetch2programsource4zpu#000001567 except: line2process4source-read-by-fetch2programsource4zpu#000001568 print('(Step 13Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001569 line2process4source-read-by-fetch2programsource4zpu#000001570 line2process4source-read-by-fetch2programsource4zpu#000001571 line2process4source-read-by-fetch2programsource4zpu#000001572 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001573 # (14) SAMPLER CALLBACK line2process4source-read-by-fetch2programsource4zpu#000001574 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001575 line2process4source-read-by-fetch2programsource4zpu#000001576 print('(Step 14A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001577 try: line2process4source-read-by-fetch2programsource4zpu#000001578 response4setcallback2sampler = set2samplercallback4zpu() line2process4source-read-by-fetch2programsource4zpu#000001579 print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) line2process4source-read-by-fetch2programsource4zpu#000001580 # function trace2sampler4zpu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4zpu#000001581 except: line2process4source-read-by-fetch2programsource4zpu#000001582 print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001583 line2process4source-read-by-fetch2programsource4zpu#000001584 line2process4source-read-by-fetch2programsource4zpu#000001585 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001586 # PHASE I: TRACE FUNCTION TESTS line2process4source-read-by-fetch2programsource4zpu#000001587 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001588 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001589 print('(Step 15A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001590 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001591 trace2zpu = None line2process4source-read-by-fetch2programsource4zpu#000001592 try: line2process4source-read-by-fetch2programsource4zpu#000001593 trace2zpu = trace2sampler4zpu() line2process4source-read-by-fetch2programsource4zpu#000001594 print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) line2process4source-read-by-fetch2programsource4zpu#000001595 # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {} line2process4source-read-by-fetch2programsource4zpu#000001596 line2process4source-read-by-fetch2programsource4zpu#000001597 except: line2process4source-read-by-fetch2programsource4zpu#000001598 print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) line2process4source-read-by-fetch2programsource4zpu#000001599 line2process4source-read-by-fetch2programsource4zpu#000001600 line2process4source-read-by-fetch2programsource4zpu#000001601 line2process4source-read-by-fetch2programsource4zpu#000001602 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001603 # PHASE II: CLASS TESTS line2process4source-read-by-fetch2programsource4zpu#000001604 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001605 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001606 print('(Step 105A/700) OF ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001607 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001608 # line2process4source-read-by-fetch2programsource4zpu#000001609 try: line2process4source-read-by-fetch2programsource4zpu#000001610 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001611 # CREATE WITH OBJECT line2process4source-read-by-fetch2programsource4zpu#000001612 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001613 samplerobject2zpu = ZPU2Sampler4Xi() line2process4source-read-by-fetch2programsource4zpu#000001614 print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) line2process4source-read-by-fetch2programsource4zpu#000001615 # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320 line2process4source-read-by-fetch2programsource4zpu#000001616 line2process4source-read-by-fetch2programsource4zpu#000001617 except: line2process4source-read-by-fetch2programsource4zpu#000001618 print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT') line2process4source-read-by-fetch2programsource4zpu#000001619 line2process4source-read-by-fetch2programsource4zpu#000001620 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001621 # PHASE II: CLASS TESTS - GET METHOD line2process4source-read-by-fetch2programsource4zpu#000001622 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001623 print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001624 try: line2process4source-read-by-fetch2programsource4zpu#000001625 response4get2samplerinfo = samplerobject2zpu.get2samplerinfo() line2process4source-read-by-fetch2programsource4zpu#000001626 line2process4source-read-by-fetch2programsource4zpu#000001627 keys2response = response4get2samplerinfo.keys() line2process4source-read-by-fetch2programsource4zpu#000001628 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001629 print(key2response, ' : ', response4get2samplerinfo[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001630 # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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-fetch2programsource4zpu#000001631 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4zpu#000001632 # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... line2process4source-read-by-fetch2programsource4zpu#000001633 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4zpu#000001634 # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4zpu#000001635 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4zpu#000001636 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001637 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed line2process4source-read-by-fetch2programsource4zpu#000001638 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' line2process4source-read-by-fetch2programsource4zpu#000001639 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed line2process4source-read-by-fetch2programsource4zpu#000001640 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4zpu#000001641 # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4zpu#000001642 # NACK2RETURN : line2process4source-read-by-fetch2programsource4zpu#000001643 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4zpu#000001644 # PIPE : (read-write PipeConnection, handle 412, read-write PipeConnection, handle 416) line2process4source-read-by-fetch2programsource4zpu#000001645 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4zpu#000001646 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02F98 line2process4source-read-by-fetch2programsource4zpu#000001647 # (Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE 04:32:25 11/07/11 Pacific Standard Time line2process4source-read-by-fetch2programsource4zpu#000001648 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4zpu#000001649 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001650 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4zpu#000001651 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4zpu#000001652 line2process4source-read-by-fetch2programsource4zpu#000001653 except: line2process4source-read-by-fetch2programsource4zpu#000001654 print('(Step 106Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SAMPLER INFO ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001655 line2process4source-read-by-fetch2programsource4zpu#000001656 task4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001657 task4getinfo2sampler ['NORMALIZATION'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001658 task4getinfo2sampler ['ADDRESSINGMODE'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001659 task4getinfo2sampler ['FILTERINGMODE'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001660 task4getinfo2sampler ['COUNT2REFERENCE'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001661 response4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001662 print('(Step 106A2/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001663 # line2process4source-read-by-fetch2programsource4zpu#000001664 try: line2process4source-read-by-fetch2programsource4zpu#000001665 response4getinfo2sampler = samplerobject2zpu.get2samplerinfo(task4getinfo2sampler) line2process4source-read-by-fetch2programsource4zpu#000001666 keys2response = response4getinfo2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001667 line2process4source-read-by-fetch2programsource4zpu#000001668 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001669 print(key2response, ' : ', response4getinfo2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001670 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4zpu#000001671 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001672 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4zpu#000001673 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4zpu#000001674 line2process4source-read-by-fetch2programsource4zpu#000001675 except: line2process4source-read-by-fetch2programsource4zpu#000001676 print('(Step 106Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001677 line2process4source-read-by-fetch2programsource4zpu#000001678 line2process4source-read-by-fetch2programsource4zpu#000001679 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001680 # PHASE II: CLASS TESTS - SET METHOD line2process4source-read-by-fetch2programsource4zpu#000001681 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001682 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001683 print('(Step 107A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001684 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001685 # line2process4source-read-by-fetch2programsource4zpu#000001686 line2process4source-read-by-fetch2programsource4zpu#000001687 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001688 # (4) INITIALIZE TASK DICTIONARY line2process4source-read-by-fetch2programsource4zpu#000001689 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001690 task4set2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001691 line2process4source-read-by-fetch2programsource4zpu#000001692 line2process4source-read-by-fetch2programsource4zpu#000001693 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001694 # (5) DEFINE CONTEXT - REQUIRED line2process4source-read-by-fetch2programsource4zpu#000001695 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001696 line2process4source-read-by-fetch2programsource4zpu#000001697 task4set2sampler ['CONTEXT'] = context2zpu line2process4source-read-by-fetch2programsource4zpu#000001698 line2process4source-read-by-fetch2programsource4zpu#000001699 line2process4source-read-by-fetch2programsource4zpu#000001700 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001701 # (6) DEFINE DEVICE - EXTRA line2process4source-read-by-fetch2programsource4zpu#000001702 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001703 line2process4source-read-by-fetch2programsource4zpu#000001704 task4set2sampler ['DEVICE'] = device2zpu line2process4source-read-by-fetch2programsource4zpu#000001705 line2process4source-read-by-fetch2programsource4zpu#000001706 line2process4source-read-by-fetch2programsource4zpu#000001707 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001708 # (7) DEFINE ERROR CODE - REQUIRED line2process4source-read-by-fetch2programsource4zpu#000001709 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001710 task4set2sampler ['CODE2ERROR'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001711 line2process4source-read-by-fetch2programsource4zpu#000001712 line2process4source-read-by-fetch2programsource4zpu#000001713 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001714 # (8) QUEUE - EXTRA line2process4source-read-by-fetch2programsource4zpu#000001715 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001716 print('(Step 108A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE4XI ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001717 task4set2sampler ['QUEUE'] = None line2process4source-read-by-fetch2programsource4zpu#000001718 try: line2process4source-read-by-fetch2programsource4zpu#000001719 task4set2sampler ['QUEUE'] = Queue4Xi() line2process4source-read-by-fetch2programsource4zpu#000001720 print('(Step 108B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) line2process4source-read-by-fetch2programsource4zpu#000001721 # queue4xi.Queue4Xi object at 0x0000000003B02B00 line2process4source-read-by-fetch2programsource4zpu#000001722 line2process4source-read-by-fetch2programsource4zpu#000001723 except: line2process4source-read-by-fetch2programsource4zpu#000001724 print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001725 line2process4source-read-by-fetch2programsource4zpu#000001726 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001727 # (9) PIPE line2process4source-read-by-fetch2programsource4zpu#000001728 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001729 print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE4XI ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001730 task4set2sampler ['PIPE'] = None line2process4source-read-by-fetch2programsource4zpu#000001731 try: line2process4source-read-by-fetch2programsource4zpu#000001732 task4set2sampler ['PIPE'] = Pipe4Xi() line2process4source-read-by-fetch2programsource4zpu#000001733 print('(Step 109B/700) OF ZPU2SAMPLER4XI5TEST - PIPE : ', task4set2sampler ['PIPE']) line2process4source-read-by-fetch2programsource4zpu#000001734 # (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) line2process4source-read-by-fetch2programsource4zpu#000001735 line2process4source-read-by-fetch2programsource4zpu#000001736 except: line2process4source-read-by-fetch2programsource4zpu#000001737 print('(Step 109Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE4XI ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001738 line2process4source-read-by-fetch2programsource4zpu#000001739 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001740 # (10) SET COMMAND QUEUE - EXTRA line2process4source-read-by-fetch2programsource4zpu#000001741 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001742 task4set2sampler ['COMMANDQUEUE'] = None line2process4source-read-by-fetch2programsource4zpu#000001743 print('(Step 110A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001744 try: line2process4source-read-by-fetch2programsource4zpu#000001745 task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() line2process4source-read-by-fetch2programsource4zpu#000001746 print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) line2process4source-read-by-fetch2programsource4zpu#000001747 # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4zpu#000001748 line2process4source-read-by-fetch2programsource4zpu#000001749 line2process4source-read-by-fetch2programsource4zpu#000001750 except: line2process4source-read-by-fetch2programsource4zpu#000001751 print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001752 line2process4source-read-by-fetch2programsource4zpu#000001753 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001754 # (11) SET ADDRESSINGMODE - EXTRA line2process4source-read-by-fetch2programsource4zpu#000001755 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001756 line2process4source-read-by-fetch2programsource4zpu#000001757 print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001758 try: line2process4source-read-by-fetch2programsource4zpu#000001759 task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' line2process4source-read-by-fetch2programsource4zpu#000001760 print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) line2process4source-read-by-fetch2programsource4zpu#000001761 # CL_ADDRESS_CLAMP_TO_EDGE line2process4source-read-by-fetch2programsource4zpu#000001762 line2process4source-read-by-fetch2programsource4zpu#000001763 line2process4source-read-by-fetch2programsource4zpu#000001764 except: line2process4source-read-by-fetch2programsource4zpu#000001765 print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001766 line2process4source-read-by-fetch2programsource4zpu#000001767 line2process4source-read-by-fetch2programsource4zpu#000001768 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001769 # (12) SET FILTERINGMODE - EXTRA line2process4source-read-by-fetch2programsource4zpu#000001770 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001771 line2process4source-read-by-fetch2programsource4zpu#000001772 print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001773 try: line2process4source-read-by-fetch2programsource4zpu#000001774 task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' line2process4source-read-by-fetch2programsource4zpu#000001775 print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) line2process4source-read-by-fetch2programsource4zpu#000001776 # CL_FILTER_LINEAR line2process4source-read-by-fetch2programsource4zpu#000001777 line2process4source-read-by-fetch2programsource4zpu#000001778 line2process4source-read-by-fetch2programsource4zpu#000001779 except: line2process4source-read-by-fetch2programsource4zpu#000001780 print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001781 line2process4source-read-by-fetch2programsource4zpu#000001782 line2process4source-read-by-fetch2programsource4zpu#000001783 line2process4source-read-by-fetch2programsource4zpu#000001784 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001785 # PHASE II: CLASS TESTS - SET SAMPLER WITH METHOD line2process4source-read-by-fetch2programsource4zpu#000001786 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001787 print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001788 try: line2process4source-read-by-fetch2programsource4zpu#000001789 response4set2sampler = samplerobject2zpu.set2sampler(task4set2sampler) line2process4source-read-by-fetch2programsource4zpu#000001790 keys2response = response4set2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001791 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001792 print(key2response, ' : ', response4set2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001793 # ACK2RETURN : 23B-24B-25B-26B-27B-28B-32B-33B- line2process4source-read-by-fetch2programsource4zpu#000001794 # ADDRESSINGMODE : CL_ADDRESS_CLAMP_TO_EDGE line2process4source-read-by-fetch2programsource4zpu#000001795 # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4zpu#000001796 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4zpu#000001797 # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4zpu#000001798 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4zpu#000001799 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001800 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed line2process4source-read-by-fetch2programsource4zpu#000001801 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 line2process4source-read-by-fetch2programsource4zpu#000001802 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4zpu#000001803 # FILTERINGMODE : CL_FILTER_LINEAR line2process4source-read-by-fetch2programsource4zpu#000001804 # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4zpu#000001805 # NACK2RETURN : 21Z1-22Z2-22Z3-29Z1-30Z1-31Z1-34Z1- line2process4source-read-by-fetch2programsource4zpu#000001806 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4zpu#000001807 # PIPE : (read-write PipeConnection, handle 380, read-write PipeConnection, handle 384) line2process4source-read-by-fetch2programsource4zpu#000001808 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4zpu#000001809 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02B00 line2process4source-read-by-fetch2programsource4zpu#000001810 line2process4source-read-by-fetch2programsource4zpu#000001811 except: line2process4source-read-by-fetch2programsource4zpu#000001812 print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001813 line2process4source-read-by-fetch2programsource4zpu#000001814 line2process4source-read-by-fetch2programsource4zpu#000001815 line2process4source-read-by-fetch2programsource4zpu#000001816 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001817 # PHASE II: CLASS TESTS - RELEASE SAMPLER line2process4source-read-by-fetch2programsource4zpu#000001818 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001819 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001820 print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001821 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001822 # line2process4source-read-by-fetch2programsource4zpu#000001823 task4release2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001824 task4release2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4zpu#000001825 try: line2process4source-read-by-fetch2programsource4zpu#000001826 response4release2sampler = samplerobject2zpu.release2sampler(task4release2sampler) line2process4source-read-by-fetch2programsource4zpu#000001827 keys2response = response4release2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001828 line2process4source-read-by-fetch2programsource4zpu#000001829 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001830 print(key2response, ' : ', response4release2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001831 # COUNT2REFERENCE : 0 line2process4source-read-by-fetch2programsource4zpu#000001832 line2process4source-read-by-fetch2programsource4zpu#000001833 except: line2process4source-read-by-fetch2programsource4zpu#000001834 print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001835 line2process4source-read-by-fetch2programsource4zpu#000001836 line2process4source-read-by-fetch2programsource4zpu#000001837 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001838 # PHASE II: CLASS TESTS - RETAIN SAMPLER line2process4source-read-by-fetch2programsource4zpu#000001839 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001840 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001841 print('(Step 122A/700) OF ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001842 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001843 task4retain2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001844 task4retain2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4zpu#000001845 try: line2process4source-read-by-fetch2programsource4zpu#000001846 response4retain2sampler = samplerobject2zpu.retain2sampler(task4retain2sampler) line2process4source-read-by-fetch2programsource4zpu#000001847 keys2response = response4retain2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001848 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001849 print(key2response, ' : ', response4retain2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001850 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001851 line2process4source-read-by-fetch2programsource4zpu#000001852 except: line2process4source-read-by-fetch2programsource4zpu#000001853 print('(Step 122Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001854 line2process4source-read-by-fetch2programsource4zpu#000001855 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001856 # PHASE II: CLASS TESTS - CREATE AGAIN SAMPLER OBJECT AND USE ITS CREATE METHOD line2process4source-read-by-fetch2programsource4zpu#000001857 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001858 print('(Step 123A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001859 # line2process4source-read-by-fetch2programsource4zpu#000001860 try: line2process4source-read-by-fetch2programsource4zpu#000001861 xi2zpu = ZPU2Sampler4Xi() line2process4source-read-by-fetch2programsource4zpu#000001862 response4create2sampler = xi2zpu.create2sampler() line2process4source-read-by-fetch2programsource4zpu#000001863 keys2response = response4create2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001864 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001865 print(key2response, ' : ', response4create2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001866 # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-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-fetch2programsource4zpu#000001867 # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT line2process4source-read-by-fetch2programsource4zpu#000001868 # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4zpu#000001869 # CODE2ERROR : 0 line2process4source-read-by-fetch2programsource4zpu#000001870 # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 line2process4source-read-by-fetch2programsource4zpu#000001871 # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4zpu#000001872 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001873 # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed line2process4source-read-by-fetch2programsource4zpu#000001874 # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' line2process4source-read-by-fetch2programsource4zpu#000001875 # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': line2process4source-read-by-fetch2programsource4zpu#000001876 # FILTERINGMODE : CL_FILTER_NEAREST line2process4source-read-by-fetch2programsource4zpu#000001877 # FUNCTION2CALLBACK : function trace2sampler4zpu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4zpu#000001878 # NACK2RETURN : line2process4source-read-by-fetch2programsource4zpu#000001879 # NORMALIZATION : CL_TRUE line2process4source-read-by-fetch2programsource4zpu#000001880 # PIPE : (read-write PipeConnection, handle 408, read-write PipeConnection, handle 424) line2process4source-read-by-fetch2programsource4zpu#000001881 # PLATFORM : {'list2platforms': ['DragonXi'], 'ack2return': ' 2C-2E-2F-2G-', 'nack2return': ' ', 'available2platform': 1, 'max2entries': 1} line2process4source-read-by-fetch2programsource4zpu#000001882 # QUEUE : queue4xi.Queue4Xi object at 0x0000000003B02E48 line2process4source-read-by-fetch2programsource4zpu#000001883 line2process4source-read-by-fetch2programsource4zpu#000001884 except: line2process4source-read-by-fetch2programsource4zpu#000001885 print('(Step 123Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001886 line2process4source-read-by-fetch2programsource4zpu#000001887 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001888 # PHASE II: CLASS TESTS - SET SAMPLER CALLBACK WITH METHOD line2process4source-read-by-fetch2programsource4zpu#000001889 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001890 print('(Step 124A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) line2process4source-read-by-fetch2programsource4zpu#000001891 # line2process4source-read-by-fetch2programsource4zpu#000001892 try: line2process4source-read-by-fetch2programsource4zpu#000001893 line2process4source-read-by-fetch2programsource4zpu#000001894 callback2zpu = xi2zpu.set2samplercallback() line2process4source-read-by-fetch2programsource4zpu#000001895 print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu) line2process4source-read-by-fetch2programsource4zpu#000001896 # function trace2sampler4zpu at 0x00000000039676C8 line2process4source-read-by-fetch2programsource4zpu#000001897 line2process4source-read-by-fetch2programsource4zpu#000001898 except: line2process4source-read-by-fetch2programsource4zpu#000001899 print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK WITH METHOD ***', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001900 line2process4source-read-by-fetch2programsource4zpu#000001901 line2process4source-read-by-fetch2programsource4zpu#000001902 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001903 # PHASE II: CLASS TESTS - TRACE SAMPLERS line2process4source-read-by-fetch2programsource4zpu#000001904 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001905 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001906 print('(Step 125A/25) OF ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001907 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001908 # line2process4source-read-by-fetch2programsource4zpu#000001909 line2process4source-read-by-fetch2programsource4zpu#000001910 trace2zpu = None line2process4source-read-by-fetch2programsource4zpu#000001911 try: line2process4source-read-by-fetch2programsource4zpu#000001912 trace2zpu = xi2zpu.trace2sampler() line2process4source-read-by-fetch2programsource4zpu#000001913 line2process4source-read-by-fetch2programsource4zpu#000001914 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001915 print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) line2process4source-read-by-fetch2programsource4zpu#000001916 # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {} line2process4source-read-by-fetch2programsource4zpu#000001917 line2process4source-read-by-fetch2programsource4zpu#000001918 line2process4source-read-by-fetch2programsource4zpu#000001919 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001920 except: line2process4source-read-by-fetch2programsource4zpu#000001921 print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) line2process4source-read-by-fetch2programsource4zpu#000001922 line2process4source-read-by-fetch2programsource4zpu#000001923 line2process4source-read-by-fetch2programsource4zpu#000001924 line2process4source-read-by-fetch2programsource4zpu#000001925 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001926 # PHASE II: CLASS TESTS - RELEASE SAMPLER BY DECREMENTING REFERENCE COUNT WITH 1 line2process4source-read-by-fetch2programsource4zpu#000001927 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001928 task4release2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001929 task4release2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4zpu#000001930 response4release2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001931 line2process4source-read-by-fetch2programsource4zpu#000001932 print('(Step 133A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001933 # line2process4source-read-by-fetch2programsource4zpu#000001934 try: line2process4source-read-by-fetch2programsource4zpu#000001935 response4release2sampler = xi2zpu.release2sampler(task4release2sampler) line2process4source-read-by-fetch2programsource4zpu#000001936 line2process4source-read-by-fetch2programsource4zpu#000001937 keys2response = response4release2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001938 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001939 print(key2response, ' : ', response4release2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001940 # COUNT2REFERENCE : 0 line2process4source-read-by-fetch2programsource4zpu#000001941 except: line2process4source-read-by-fetch2programsource4zpu#000001942 print('(Step 133Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001943 line2process4source-read-by-fetch2programsource4zpu#000001944 task4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001945 task4getinfo2sampler ['COUNT2REFERENCE'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001946 response4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001947 print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001948 # line2process4source-read-by-fetch2programsource4zpu#000001949 try: line2process4source-read-by-fetch2programsource4zpu#000001950 response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) line2process4source-read-by-fetch2programsource4zpu#000001951 keys2response = response4getinfo2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001952 line2process4source-read-by-fetch2programsource4zpu#000001953 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001954 print(key2response, ' : ', response4getinfo2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001955 # COUNT2REFERENCE : 0 line2process4source-read-by-fetch2programsource4zpu#000001956 except: line2process4source-read-by-fetch2programsource4zpu#000001957 print('(Step 133Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001958 line2process4source-read-by-fetch2programsource4zpu#000001959 line2process4source-read-by-fetch2programsource4zpu#000001960 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001961 # PHASE II: CLASS TESTS - RETAIN SAMPLER BY DECREASING REFERENCE WITH 1 line2process4source-read-by-fetch2programsource4zpu#000001962 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001963 task4retain2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001964 task4retain2sampler ['COUNT2REFERENCE'] = 1 line2process4source-read-by-fetch2programsource4zpu#000001965 response4retain2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001966 print('(Step 134A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001967 try: line2process4source-read-by-fetch2programsource4zpu#000001968 response4retain2sampler = xi2zpu.retain2sampler(task4retain2sampler) line2process4source-read-by-fetch2programsource4zpu#000001969 line2process4source-read-by-fetch2programsource4zpu#000001970 keys2response = response4retain2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001971 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001972 print(key2response, ' : ', response4retain2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001973 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001974 except: line2process4source-read-by-fetch2programsource4zpu#000001975 print('(Step 134Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001976 line2process4source-read-by-fetch2programsource4zpu#000001977 task4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001978 task4getinfo2sampler ['COUNT2REFERENCE'] = 0 line2process4source-read-by-fetch2programsource4zpu#000001979 response4getinfo2sampler = {} line2process4source-read-by-fetch2programsource4zpu#000001980 print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001981 # line2process4source-read-by-fetch2programsource4zpu#000001982 try: line2process4source-read-by-fetch2programsource4zpu#000001983 response4getinfo2sampler = xi2zpu.get2samplerinfo (task4getinfo2sampler) line2process4source-read-by-fetch2programsource4zpu#000001984 keys2response = response4getinfo2sampler.keys() line2process4source-read-by-fetch2programsource4zpu#000001985 line2process4source-read-by-fetch2programsource4zpu#000001986 for key2response in sorted(keys2response): line2process4source-read-by-fetch2programsource4zpu#000001987 print(key2response, ' : ', response4getinfo2sampler[key2response]) line2process4source-read-by-fetch2programsource4zpu#000001988 # COUNT2REFERENCE : 1 line2process4source-read-by-fetch2programsource4zpu#000001989 line2process4source-read-by-fetch2programsource4zpu#000001990 except: line2process4source-read-by-fetch2programsource4zpu#000001991 print('(Step 134Z2/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001992 line2process4source-read-by-fetch2programsource4zpu#000001993 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001994 # PHASE II: CLASS TESTS - SENSE SAMPLER line2process4source-read-by-fetch2programsource4zpu#000001995 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000001996 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001997 print('(Step 170A/700) OF ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000001998 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000001999 line2process4source-read-by-fetch2programsource4zpu#000002000 try: line2process4source-read-by-fetch2programsource4zpu#000002001 print(xi2zpu.sense()) line2process4source-read-by-fetch2programsource4zpu#000002002 line2process4source-read-by-fetch2programsource4zpu#000002003 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002004 print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002005 # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} line2process4source-read-by-fetch2programsource4zpu#000002006 line2process4source-read-by-fetch2programsource4zpu#000002007 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002008 except: line2process4source-read-by-fetch2programsource4zpu#000002009 print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SENSE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002010 line2process4source-read-by-fetch2programsource4zpu#000002011 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002012 # PHASE II: CLASS TESTS - REASON SAMPLER line2process4source-read-by-fetch2programsource4zpu#000002013 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002014 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002015 print('(Step 171A/700) OF ZPU2SAMPLER4XI5TEST - REASONING ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002016 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002017 line2process4source-read-by-fetch2programsource4zpu#000002018 try: line2process4source-read-by-fetch2programsource4zpu#000002019 print(xi2zpu.reason()) line2process4source-read-by-fetch2programsource4zpu#000002020 line2process4source-read-by-fetch2programsource4zpu#000002021 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002022 print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002023 # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '04:32:25 11/07/11 Pacific Standard Time'} line2process4source-read-by-fetch2programsource4zpu#000002024 line2process4source-read-by-fetch2programsource4zpu#000002025 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002026 except: line2process4source-read-by-fetch2programsource4zpu#000002027 print('(Step 171Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO REASON ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002028 line2process4source-read-by-fetch2programsource4zpu#000002029 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002030 # PHASE II: CLASS TESTS - ACE SAMPLER line2process4source-read-by-fetch2programsource4zpu#000002031 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002032 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002033 print('(Step 172A/700) OF ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002034 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002035 line2process4source-read-by-fetch2programsource4zpu#000002036 try: line2process4source-read-by-fetch2programsource4zpu#000002037 print(xi2zpu.ace()) line2process4source-read-by-fetch2programsource4zpu#000002038 line2process4source-read-by-fetch2programsource4zpu#000002039 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002040 print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002041 # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} line2process4source-read-by-fetch2programsource4zpu#000002042 line2process4source-read-by-fetch2programsource4zpu#000002043 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002044 except: line2process4source-read-by-fetch2programsource4zpu#000002045 print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO ACE ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002046 line2process4source-read-by-fetch2programsource4zpu#000002047 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002048 # DONE - ALL TESTS line2process4source-read-by-fetch2programsource4zpu#000002049 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002050 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002051 print('(Step 174/700) OF ZPU2SAMPLER4XI5TEST - DONE! ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002052 # line2process4source-read-by-fetch2programsource4zpu#000002053 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002054 except: line2process4source-read-by-fetch2programsource4zpu#000002055 print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** FAILED **** ', time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002056 finally: line2process4source-read-by-fetch2programsource4zpu#000002057 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002058 # Print Trace line2process4source-read-by-fetch2programsource4zpu#000002059 # --------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002060 print2trace4xi(t2xi) line2process4source-read-by-fetch2programsource4zpu#000002061 line2process4source-read-by-fetch2programsource4zpu#000002062 line2process4source-read-by-fetch2programsource4zpu#000002063 #/function4xi line2process4source-read-by-fetch2programsource4zpu#000002064 line2process4source-read-by-fetch2programsource4zpu#000002065 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002066 #function4xi function = "main" usage = " line2process4source-read-by-fetch2programsource4zpu#000002067 # main function for zpu2sampler4xi5test line2process4source-read-by-fetch2programsource4zpu#000002068 #" line2process4source-read-by-fetch2programsource4zpu#000002069 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002070 def main(): line2process4source-read-by-fetch2programsource4zpu#000002071 line2process4source-read-by-fetch2programsource4zpu#000002072 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002073 print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002074 # line2process4source-read-by-fetch2programsource4zpu#000002075 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002076 line2process4source-read-by-fetch2programsource4zpu#000002077 zpu2sampler4xi5test() line2process4source-read-by-fetch2programsource4zpu#000002078 line2process4source-read-by-fetch2programsource4zpu#000002079 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002080 print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", time4xi()) line2process4source-read-by-fetch2programsource4zpu#000002081 # line2process4source-read-by-fetch2programsource4zpu#000002082 line2process4source-read-by-fetch2programsource4zpu#000002083 print('=' *33) line2process4source-read-by-fetch2programsource4zpu#000002084 line2process4source-read-by-fetch2programsource4zpu#000002085 #/function4xi line2process4source-read-by-fetch2programsource4zpu#000002086 line2process4source-read-by-fetch2programsource4zpu#000002087 line2process4source-read-by-fetch2programsource4zpu#000002088 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002089 # __main__ line2process4source-read-by-fetch2programsource4zpu#000002090 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002091 if __name__ == '__main__': line2process4source-read-by-fetch2programsource4zpu#000002092 main() line2process4source-read-by-fetch2programsource4zpu#000002093 #/program4xi line2process4source-read-by-fetch2programsource4zpu#000002094 line2process4source-read-by-fetch2programsource4zpu#000002095 line2process4source-read-by-fetch2programsource4zpu#000002096 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002097 # Recorded History line2process4source-read-by-fetch2programsource4zpu#000002098 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002099 #record4xi record = " line2process4source-read-by-fetch2programsource4zpu#000002100 # zpu2sampler4xi5test.txt line2process4source-read-by-fetch2programsource4zpu#000002101 # sense-zpu2sampler4xi5test.xml line2process4source-read-by-fetch2programsource4zpu#000002102 # reason-zpu2sampler4xi5test.xml line2process4source-read-by-fetch2programsource4zpu#000002103 # ace-zpu2sampler4xi5test.xml line2process4source-read-by-fetch2programsource4zpu#000002104 #" line2process4source-read-by-fetch2programsource4zpu#000002105 # line2process4source-read-by-fetch2programsource4zpu#000002106 line2process4source-read-by-fetch2programsource4zpu#000002107 #acknowledge4xi acknowledgement = "33" tester = "Small Smart"/ line2process4source-read-by-fetch2programsource4zpu#000002108 line2process4source-read-by-fetch2programsource4zpu#000002109 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002110 # to-be-done line2process4source-read-by-fetch2programsource4zpu#000002111 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002112 #do4xi do = " line2process4source-read-by-fetch2programsource4zpu#000002113 # nothing line2process4source-read-by-fetch2programsource4zpu#000002114 #" line2process4source-read-by-fetch2programsource4zpu#000002115 #/ line2process4source-read-by-fetch2programsource4zpu#000002116 line2process4source-read-by-fetch2programsource4zpu#000002117 #note4xi note = " line2process4source-read-by-fetch2programsource4zpu#000002118 # parse4xi.py - to parse this module line2process4source-read-by-fetch2programsource4zpu#000002119 # "/ line2process4source-read-by-fetch2programsource4zpu#000002120 line2process4source-read-by-fetch2programsource4zpu#000002121 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002122 # Legal Notice line2process4source-read-by-fetch2programsource4zpu#000002123 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002124 #protect4xi protection = "copyright" line2process4source-read-by-fetch2programsource4zpu#000002125 # owner = "Small Smart" line2process4source-read-by-fetch2programsource4zpu#000002126 # rights = "All rights reserved" line2process4source-read-by-fetch2programsource4zpu#000002127 # state = "California" line2process4source-read-by-fetch2programsource4zpu#000002128 # country = "United States of America" line2process4source-read-by-fetch2programsource4zpu#000002129 # codes = "Codes established in California and applicable to corporations in California" line2process4source-read-by-fetch2programsource4zpu#000002130 # compliance = "The California Law" line2process4source-read-by-fetch2programsource4zpu#000002131 # court = "Supreme Court of California, 350 McAllister Street, San Francisco, CA 94102-4783" line2process4source-read-by-fetch2programsource4zpu#000002132 #/ line2process4source-read-by-fetch2programsource4zpu#000002133 line2process4source-read-by-fetch2programsource4zpu#000002134 #end4xi end = " line2process4source-read-by-fetch2programsource4zpu#000002135 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002136 # end of zpu2sampler4xi5test.py line2process4source-read-by-fetch2programsource4zpu#000002137 # ------------------------------------------------------------------------------------------------- line2process4source-read-by-fetch2programsource4zpu#000002138 #" line2process4source-read-by-fetch2programsource4zpu#000002139 #/ name2program4source-skipped-by-fetch2programsource4zpu#000000033 ('e://scope4xi//041721//zap//lib//z//index', '.html') name2program4source-skipped-by-fetch2programsource4zpu#000000059 ('e://scope4xi//041721//zap//lib//z//z2scope4xi', '.txt') name2program4source-skipped-by-fetch2programsource4zpu#000002184 ('e://scope4xi//041721//zap//lib//z//__pycache__\\version4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4zpu#000002195 ('e://scope4xi//041721//zap//lib//z//__pycache__\\z2skeleton4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4zpu#000002206 ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2buffer4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4zpu#000002217 ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2commandqueue4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4zpu#000002228 ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2context4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4zpu#000002239 ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2device4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4zpu#000002250 ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2event4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4zpu#000002261 ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2image4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4zpu#000002272 ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2kernel4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4zpu#000002283 ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2program4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4zpu#000002294 ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2sampler4xi.cpython-33', '.pyc') name2program4source-skipped-by-fetch2programsource4zpu#000002305 ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu3image4xi.cpython-33', '.pyc') path2input4source-analyzing-by-fetch2programsource4zpu#000000046 e://scope4xi//041721//zap//lib//z//version4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000072 e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000087 e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py path2input4source-analyzing-by-fetch2programsource4zpu#000000102 e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000117 e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000132 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000147 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py path2input4source-analyzing-by-fetch2programsource4zpu#000000162 e://scope4xi//041721//zap//lib//z//zpu2context4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000177 e://scope4xi//041721//zap//lib//z//zpu2device4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000192 e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp path2input4source-analyzing-by-fetch2programsource4zpu#000000548 e://scope4xi//041721//zap//lib//z//zpu2event4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000563 e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py path2input4source-analyzing-by-fetch2programsource4zpu#000000578 e://scope4xi//041721//zap//lib//z//zpu2image4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000593 e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py path2input4source-analyzing-by-fetch2programsource4zpu#000000608 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000623 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py path2input4source-analyzing-by-fetch2programsource4zpu#000000638 e://scope4xi//041721//zap//lib//z//zpu2program4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000653 e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py path2input4source-analyzing-by-fetch2programsource4zpu#000000668 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000000683 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py path2input4source-analyzing-by-fetch2programsource4zpu#000002155 e://scope4xi//041721//zap//lib//z//zpu3image4xi.py path2input4source-analyzing-by-fetch2programsource4zpu#000002170 e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py path2input4source-set-by-fetch2programsource4zpu#000000045 e://scope4xi//041721//zap//lib//z//version4xi.py path2input4source-set-by-fetch2programsource4zpu#000000071 e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py path2input4source-set-by-fetch2programsource4zpu#000000086 e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py path2input4source-set-by-fetch2programsource4zpu#000000101 e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py path2input4source-set-by-fetch2programsource4zpu#000000116 e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py path2input4source-set-by-fetch2programsource4zpu#000000131 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py path2input4source-set-by-fetch2programsource4zpu#000000146 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py path2input4source-set-by-fetch2programsource4zpu#000000161 e://scope4xi//041721//zap//lib//z//zpu2context4xi.py path2input4source-set-by-fetch2programsource4zpu#000000176 e://scope4xi//041721//zap//lib//z//zpu2device4xi.py path2input4source-set-by-fetch2programsource4zpu#000000191 e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp path2input4source-set-by-fetch2programsource4zpu#000000547 e://scope4xi//041721//zap//lib//z//zpu2event4xi.py path2input4source-set-by-fetch2programsource4zpu#000000562 e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py path2input4source-set-by-fetch2programsource4zpu#000000577 e://scope4xi//041721//zap//lib//z//zpu2image4xi.py path2input4source-set-by-fetch2programsource4zpu#000000592 e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py path2input4source-set-by-fetch2programsource4zpu#000000607 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py path2input4source-set-by-fetch2programsource4zpu#000000622 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py path2input4source-set-by-fetch2programsource4zpu#000000637 e://scope4xi//041721//zap//lib//z//zpu2program4xi.py path2input4source-set-by-fetch2programsource4zpu#000000652 e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py path2input4source-set-by-fetch2programsource4zpu#000000667 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py path2input4source-set-by-fetch2programsource4zpu#000000682 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py path2input4source-set-by-fetch2programsource4zpu#000002154 e://scope4xi//041721//zap//lib//z//zpu3image4xi.py path2input4source-set-by-fetch2programsource4zpu#000002169 e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000047 e://scope4xi//041721//zap//lib//z//version4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000048 e://scope4xi//041721//zap//lib//z//version4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000049 e://scope4xi//041721//zap//lib//z//version4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000050 e://scope4xi//041721//zap//lib//z//version4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000073 e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000074 e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000075 e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000076 e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000088 e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000089 e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000090 e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000091 e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000103 e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000104 e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000105 e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000106 e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000118 e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000119 e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000120 e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000121 e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000133 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000134 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000135 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000136 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000148 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000149 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000150 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000151 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000163 e://scope4xi//041721//zap//lib//z//zpu2context4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000164 e://scope4xi//041721//zap//lib//z//zpu2context4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000165 e://scope4xi//041721//zap//lib//z//zpu2context4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000166 e://scope4xi//041721//zap//lib//z//zpu2context4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000178 e://scope4xi//041721//zap//lib//z//zpu2device4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000179 e://scope4xi//041721//zap//lib//z//zpu2device4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000180 e://scope4xi//041721//zap//lib//z//zpu2device4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000181 e://scope4xi//041721//zap//lib//z//zpu2device4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000193 e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp path2input4source-skipped-by-fetch2programsource4zpu#000000194 e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp path2input4source-skipped-by-fetch2programsource4zpu#000000537 e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp path2input4source-skipped-by-fetch2programsource4zpu#000000549 e://scope4xi//041721//zap//lib//z//zpu2event4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000550 e://scope4xi//041721//zap//lib//z//zpu2event4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000551 e://scope4xi//041721//zap//lib//z//zpu2event4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000552 e://scope4xi//041721//zap//lib//z//zpu2event4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000564 e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000565 e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000566 e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000567 e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000579 e://scope4xi//041721//zap//lib//z//zpu2image4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000580 e://scope4xi//041721//zap//lib//z//zpu2image4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000581 e://scope4xi//041721//zap//lib//z//zpu2image4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000582 e://scope4xi//041721//zap//lib//z//zpu2image4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000594 e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000595 e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000596 e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000597 e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000609 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000610 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000611 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000612 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000624 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000625 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000626 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000627 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000639 e://scope4xi//041721//zap//lib//z//zpu2program4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000640 e://scope4xi//041721//zap//lib//z//zpu2program4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000641 e://scope4xi//041721//zap//lib//z//zpu2program4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000642 e://scope4xi//041721//zap//lib//z//zpu2program4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000654 e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000655 e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000656 e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000657 e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000000669 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000670 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000671 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000000672 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000002142 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000002143 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000002144 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000002156 e://scope4xi//041721//zap//lib//z//zpu3image4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000002157 e://scope4xi//041721//zap//lib//z//zpu3image4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000002158 e://scope4xi//041721//zap//lib//z//zpu3image4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000002159 e://scope4xi//041721//zap//lib//z//zpu3image4xi.py path2input4source-skipped-by-fetch2programsource4zpu#000002171 e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000002172 e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000002173 e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py path2input4source-skipped-by-fetch2programsource4zpu#000002174 e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py pipe-created-by-create2programwithsource4zpu#000002331 (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0) pipe-try-by-create2programwithsource4zpu#000002330 None pipe2zpu-got-by-create2programwithsource4zpu#000000016 (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0) pipe2zpu-trying-by-create2programwithsource4zpu#000000015 None platform-created-by-create2programwithsource4zpu#000002321 {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '} platform-try-by-create2programwithsource4zpu#000002320 {} platform2xi-created-by-create2programwithsource4zpu#000000007 {} platform2xi-got-by-create2programwithsource4zpu#000000008 {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '} program-to-read-decided-by-fetch2programsource4zpu#000000195 e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp program-to-read-decided-by-fetch2programsource4zpu#000000684 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000044 e://scope4xi//041721//zap//lib//z//version4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000070 e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000085 e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000100 e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000115 e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000130 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000145 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000160 e://scope4xi//041721//zap//lib//z//zpu2context4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000175 e://scope4xi//041721//zap//lib//z//zpu2device4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000190 e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000546 e://scope4xi//041721//zap//lib//z//zpu2event4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000561 e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000576 e://scope4xi//041721//zap//lib//z//zpu2image4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000591 e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000606 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000621 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000636 e://scope4xi//041721//zap//lib//z//zpu2program4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000651 e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000666 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000000681 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000002153 e://scope4xi//041721//zap//lib//z//zpu3image4xi.py program2explore4zpu-analyzing-by-fetch2programsource4zpu#000002168 e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000031 e://scope4xi//041721//zap//lib//z//index.html program2explore4zpu-passed-to-fetch2programsource4zpu#000000042 e://scope4xi//041721//zap//lib//z//version4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000057 e://scope4xi//041721//zap//lib//z//z2scope4xi.txt program2explore4zpu-passed-to-fetch2programsource4zpu#000000068 e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000083 e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000098 e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000113 e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000128 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000143 e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000158 e://scope4xi//041721//zap//lib//z//zpu2context4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000173 e://scope4xi//041721//zap//lib//z//zpu2device4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000188 e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp program2explore4zpu-passed-to-fetch2programsource4zpu#000000544 e://scope4xi//041721//zap//lib//z//zpu2event4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000559 e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000574 e://scope4xi//041721//zap//lib//z//zpu2image4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000589 e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000604 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000619 e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000634 e://scope4xi//041721//zap//lib//z//zpu2program4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000649 e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000664 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000000679 e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py program2explore4zpu-passed-to-fetch2programsource4zpu#000002151 e://scope4xi//041721//zap//lib//z//zpu3image4xi.py program2explore4zpu-passed-to-fetch2programsource4zpu#000002166 e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py program2explore4zpu-passed-to-fetch2programsource4zpu#000002182 e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc program2explore4zpu-passed-to-fetch2programsource4zpu#000002193 e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc program2explore4zpu-passed-to-fetch2programsource4zpu#000002204 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc program2explore4zpu-passed-to-fetch2programsource4zpu#000002215 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc program2explore4zpu-passed-to-fetch2programsource4zpu#000002226 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc program2explore4zpu-passed-to-fetch2programsource4zpu#000002237 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc program2explore4zpu-passed-to-fetch2programsource4zpu#000002248 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc program2explore4zpu-passed-to-fetch2programsource4zpu#000002259 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc program2explore4zpu-passed-to-fetch2programsource4zpu#000002270 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc program2explore4zpu-passed-to-fetch2programsource4zpu#000002281 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc program2explore4zpu-passed-to-fetch2programsource4zpu#000002292 e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc program2explore4zpu-passed-to-fetch2programsource4zpu#000002303 e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc queue-created-by-create2programwithsource4zpu#000002329 queue4xi.Queue4Xi object at 0x029327D0 queue-try-by-create2programwithsource4zpu#000002328 None queue2zpu-got-by-create2programwithsource4zpu#000000014 queue4xi.Queue4Xi object at 0x029327D0 queue2zpu-trying-by-create2programwithsource4zpu#000000013 None size-initialized-by-create2programwithsource4zpu#000002346 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453} size-try-by-create2programwithsource4zpu#000002345 None size2source4zpu-set-by-create2programwithsource4zpu#000002311 {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453} task4program2zpu-created-by-create2programwithsource4zpu#000000003 {} task4program2zpu-created-by-create2programwithsource4zpu#000000006 {'FUNCTION2CALLBACK': function trace2program4zpu at 0x02EA5AE0, 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed task4program2zpu-to-create2programwithsource4zpu#000000002 None task4program2zpu-try-by-create2programwithsource4zpu#000002338 {'CODE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed zpu2program4xi-initialized-by-create2programwithsource4zpu#000002315 {} --------------------------------- xml_trace_ace4xi: create ACE XML file --------------------------------- ================================= xml_trace_ace4xi: opened XML file: E:\scope4xi\041721\zap\web\xml\ace-zpu2program4xi5test.xml ================================= --------------------------------- xml_trace_ace4xi: create header for XML file --------------------------------- ACE writing: class 'zpu2program4xi.DirectoryWalker' ACE writing: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ACE writing: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ACE writing: {} ACE writing: {'POINTER2BUFFER': mmap.mmap object at 0x02F6C7C8, 'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6A-7A-8A-8E-9A-10A-11B-12B-13B-14B-15B-16B-17B-18B-19B-', 'NACK2RETURN': ' ', 'DATA2CALLBACK': {'CLASS': 'create2buffer4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2buffer4zpu-failed ACE writing: {} ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: 0 ACE writing: None ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ACE writing: {} ACE writing: {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ACE writing: {} ACE writing: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ACE writing: {'INFO2PRIVATE': None, 'ACK2RETURN': ' 2A-2C-2D-2E-2B-3B-4B-5B-6B-7B-7B-', 'PLATFORM': {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '}, 'PROPERTIES': None, 'SIZE2PRIVATE': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': {'CLASS': 'create2context4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2context4zpu-failed ACE writing: {} ACE writing: {} ACE writing: 2 ACE writing: 2 ACE writing: 1 ACE writing: None ACE writing: 1 ACE writing: 2 ACE writing: 0 ACE writing: function create2programwithsource4zpu at 0x02EA5C00 ACE writing: {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ACE writing: {} ACE writing: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'} ACE writing: {} ACE writing: {'PREFERRED2WIDTHSHORT4VECTOR': 8, 'EXECUTE2FUNCTION4NATIVE': 'ACK', 'OUT-OF-ORDER2QUEUE': 'NACK', 'MAX2WORKITEM2': 1024, 'NATIVE2WIDTHINT4VECTOR': 4, 'MAX2WORKITEM0': 1024, 'MAX2WORKITEM1': 1024, 'TYPE2MEMORY4LOCAL': 'Global', 'MINIMUM2ALIGNMENT4DATATYPE': 128, 'PREFERRED2WIDTHCHAR4VECTOR': 16, 'RESOLUTION2TIMER4PROFILING': 318, 'MAX2SIZE4KERNELARGUMENT': 4096, 'SUPPORT2IMAGE': 'NACK', 'IEEE754-2008FUSED2MULTIPLY-ADD': 'NACK', 'SIZE2CACHE': 65536, 'AVAILABLE2COMPILER': 'ACK', 'SIZE2LINE4CACHE': 64, 'SIZE2MEMORY4LOCAL': 32768, 'BITS2ADDRESS': 64, 'SUPPORT2CORRECTION4ERROR': 0, 'PREFERRED2WIDTHFLOAT4VECTOR': 4, 'QUIET2NANS': 'ACK', 'MAX2SIZE4WORKGROUP': 1024, 'ROUND2+VE3INFINITY': 'ACK', 'NATIVE2WIDTHDOUBLE4VECTOR': 0, 'SIZE2BUFFER4CONSTANT': 65536, 'AVAILABLE': 'ACK', 'ID2PLATFORM': '0000000001509568', 'PREFERRED2WIDTHLONG4VECTOR': 2, 'SIZE2PREFERREDWORKGROUPMULTIPLE4KERNEL': 1, 'ALIGNMENT2ADDRESS4BASE': 1024, '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', 'ROUND2ZERO': 'ACK', 'MAX2DIMENSIONS4WORKITEMS': 3, 'VERSION': 'OpenCL 1.1 ATI-Stream-v2.3 (451)', 'PROFILING2QUEUE': 'ACK', 'PREFERRED2WIDTHINT4VECTOR': 4, 'ENDIANESS2DEVICE': 'Little', 'NATIVE2WIDTHLONG4VECTOR': 2, 'MAX2FREQUENCY4CLOCK': 3210, 'NATIVE2WIDTHFLOAT4VECTOR': 4, '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-', 'TYPE': 'CL_DEVICE_TYPE_ZPU', 'NATIVE2WIDTHCHAR4VECTOR': 16, 'NATIVE2WIDTHSHORT4VECTOR': 8, 'DENORMS2SINGLEPRECISION4FLOATINGPOINTCAPABILITY': 'ACK', 'ID': 4033, 'EXECUTE2KERNELS4OPENCL': 'ACK', 'PREFERRED2WIDTHDOUBLE4VECTOR': 0, 'NACK2RETURN': ' ', 'VERSION2DRIVER': '2.0', 'PROFILE': 'FULL_PROFILE', 'MAX2UNITS4COMPUTE': 4, 'MAX2ALLOCATION4MEMORY': 1073741824, 'TYPE4CACHE': 'Read/Write', 'SIZE2MEMORY4GLOBAL': 3221225472, 'MAX2NUMBER4CONSTANTARGS': 8, 'ROUND2NEAREST4EVEN': 'ACK', 'MEMORY2UNIFIED4HOSTANDDEVICE': 1, 'VENDOR': 'AuthenticAMD', 'NAME': 'AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD'} ACE writing: {} ACE writing: e://scope4xi//041721//zap//lib//z// ACE writing: e://scope4xi//041721//zap//lib//z// ACE writing: e://scope4xi//041721//zap//lib//z//bin ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__ ACE writing: None ACE writing: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ACE writing: {} ACE writing: {'ACK2RETURN': ' 1D-1E-2C-2B-3B-4B-6B-7B-8B-9B-10B-11B-12B-14B-15B-16B-', 'NACK2RETURN': ' ', 'PIPE': (pipeconnection4xi.PipeConnection4Xi object at 0x02F59510, pipeconnection4xi.PipeConnection4Xi object at 0x02F594F0), 'COMMANDQUEUE': {'INFO2PRIVATE': None, 'NACK2RETURN': ' ', 'PROPERTIES': None, 'DATA2CALLBACK': {'CLASS': 'create2commandqueue4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2commandqueue4zpu-failed ACE writing: {} ACE writing: html ACE writing: txt 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: pyc ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {} ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: function fetch2programsource4zpu at 0x02EA5DF8 ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:48 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: 08:41:49 02/18/15 FLE Standard Time ACE writing: e://scope4xi//041721//zap//lib//z//index.html ACE writing: e://scope4xi//041721//zap//lib//z//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc ACE writing: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252' ACE writing: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252' ACE writing: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp' mode='r' encoding='cp1252' ACE writing: _io.TextIOWrapper name='e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py' mode='r' encoding='cp1252' ACE writing: e://scope4xi//041721//zap//lib//z//index.html ACE writing: e://scope4xi//041721//zap//lib//z//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc ACE writing: function trace2program4zpu at 0x02EA5AE0 ACE writing: None ACE writing: function trace2program4zpu at 0x02EA5AE0 ACE writing: 3 ACE writing: 1 ACE writing: DIRECTORY4SOURCE ACE writing: COMMANDQUEUE ACE writing: CODE4SOURCE ACE writing: NACK2RETURN ACE writing: BUFFER ACE writing: LANGUAGE4SOURCE ACE writing: DATA2CALLBACK ACE writing: PIPE ACE writing: ACK2RETURN ACE writing: COUNT4SOURCE ACE writing: QUEUE ACE writing: PLATFORM ACE writing: EVENT ACE writing: FUNCTION2CALLBACK ACE writing: CONTEXT ACE writing: SIZE4SOURCE ACE writing: COUNT2REFERENCE ACE writing: CODE2ERROR ACE writing: DEVICE ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) ACE writing: dict_keys(['.c', '.py', '.cpp', '.cl']) 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: // zpu2dummy4xi5test.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 = "zpu2sampler4xi5test.py" ACE writing: #abstract4xi abstract = "tests zpu2sampler4xi.py"/ ACE writing: #verify4xi verification = "11" target = "zpu2sampler4xi.py"/ ACE writing: #contextualize4xi context = "sampler4xi.py"/ ACE writing: #state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/ ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Public API ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #interface4xi interface = " ACE writing: __all__ = ['zpu2sampler4xi5test'] 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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi ACE writing: from zpu2commandqueue4xi import create2commandqueue4zpu ACE writing: from zpu2commandqueue4xi import flush2commandqueue4zpu ACE writing: from zpu2commandqueue4xi import finish2commandqueue4zpu ACE writing: from zpu2commandqueue4xi import get2commandqueueinfo4zpu ACE writing: from zpu2commandqueue4xi import release2commandqueue4zpu ACE writing: from zpu2commandqueue4xi import retain2commandqueue4zpu ACE writing: from zpu2commandqueue4xi import set2commandqueue4zpu ACE writing: from zpu2commandqueue4xi import trace2commandqueue4zpu ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Context module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from zpu2context4xi import ZPU2Context4Xi ACE writing: from zpu2context4xi import create2context4zpu ACE writing: from zpu2context4xi import get2context4zpu ACE writing: from zpu2context4xi import release2context4zpu ACE writing: from zpu2context4xi import retain2context4zpu ACE writing: from zpu2context4xi import set2context4zpu ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Device module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from zpu2device4xi import ZPU4Xi ACE writing: from zpu2device4xi import init2zpu4xi ACE writing: from zpu2device4xi import set2zpu4xi ACE writing: from zpu2device4xi import get2zpu4xi ACE writing: ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Event module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from zpu2event4xi import ZPU2Event4Xi ACE writing: from zpu2event4xi import create2event4zpu ACE writing: from zpu2event4xi import get2eventinfo4zpu ACE writing: from zpu2event4xi import release2event4zpu ACE writing: from zpu2event4xi import retain2event4zpu ACE writing: from zpu2event4xi import set2eventcallback4zpu ACE writing: from zpu2event4xi import set2event4zpu ACE writing: from zpu2event4xi import trace2event4zpu ACE writing: from zpu2event4xi import wait2event4zpu ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Image module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from zpu2image4xi import ZPU2Image4Xi ACE writing: from zpu2image4xi import create2image4zpu ACE writing: from zpu2image4xi import get2imageinfo4zpu ACE writing: from zpu2image4xi import get2supportedimageformats4zpu ACE writing: from zpu2image4xi import manoeuvre2copyimage4zpu ACE writing: from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu ACE writing: from zpu2image4xi import manoeuvre2copybuffertoimage4zpu ACE writing: from zpu2image4xi import manoeuvre2readimage4zpu ACE writing: from zpu2image4xi import manoeuvre2writeimage4zpu ACE writing: from zpu2image4xi import manoeuvre2mapimage4zpu ACE writing: from zpu2image4xi import copy2image4zpu ACE writing: from zpu2image4xi import copy2imagetobuffer4zpu ACE writing: from zpu2image4xi import copy2buffertoimage4zpu ACE writing: from zpu2image4xi import read2image4zpu ACE writing: from zpu2image4xi import map2image4zpu ACE writing: from zpu2image4xi import release2image4zpu ACE writing: from zpu2image4xi import retain2image4zpu ACE writing: from zpu2image4xi import set2imagecallback4zpu ACE writing: from zpu2image4xi import set2image4zpu ACE writing: from zpu2image4xi import trace2image4zpu ACE writing: from zpu2image4xi import wait2image4zpu ACE writing: from zpu2image4xi import write2image4zpu ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # Sampler module ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: from zpu2sampler4xi import ZPU2Sampler4Xi ACE writing: from zpu2sampler4xi import create2sampler4zpu ACE writing: from zpu2sampler4xi import get2samplerinfo4zpu ACE writing: from zpu2sampler4xi import release2sampler4zpu ACE writing: from zpu2sampler4xi import retain2sampler4zpu ACE writing: from zpu2sampler4xi import set2samplercallback4zpu ACE writing: from zpu2sampler4xi import set2sampler4zpu ACE writing: from zpu2sampler4xi import trace2sampler4zpu 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: 'ZPU2Sampler4Xi': 'NACK4XI', ACE writing: 'create2sampler4zpu': 'NACK4XI', ACE writing: 'get2samplerinfo4zpu': 'NACK4XI', ACE writing: 'retain2sampler4zpu': 'NACK4XI', ACE writing: 'release2sampler4zpu': 'NACK4XI', ACE writing: 'trace2sampler4zpu': 'NACK4XI', ACE writing: 'set2samplercallback4zpu': 'NACK4XI', ACE writing: 'set2sampler4zpu': '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: #/function4xi ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #function4xi function = "print-trace4xi" usage = " ACE writing: # print XML trace for sampler4zpu test ACE writing: #" 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-zpu2sampler4xi5test.xml', ACE writing: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ACE writing: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.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 ZPU./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 ZPU 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-zpu2sampler4xi5test.xml', ACE writing: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ACE writing: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.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 ZPU./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-zpu2sampler4xi5test.xml', ACE writing: 'name_space4xi': ' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\n', ACE writing: 'xml_base4xi': ' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.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 ZPU./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 ZPU./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 = "zpu2sampler4xi5test" usage = " ACE writing: # tests sampler4zpu ACE writing: #" ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: def zpu2sampler4xi5test(): 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: ACE writing: try: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # START TESTING ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('=' *33) ACE writing: print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - 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 ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) ACE writing: try: ACE writing: response4create2sampler = create2sampler4zpu() 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; create2sampler4zpu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # FUNCTION2CALLBACK : function trace2sampler4zpu 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 ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU *** ', 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 ZPU2SAMPLER4XI5TEST - TRYING TO GET SOME SAMPLER INFO FOR ZPU ', 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: response4samplerinfo2zpu = get2samplerinfo4zpu(task4getinfo2sampler) ACE writing: print('(Step 3B2/700) OF ZPU2SAMPLER4XI5TEST - GOT SOME SAMPLER INFO FOR ZPU ', time4xi()) ACE writing: keys2response = response4samplerinfo2zpu.keys() ACE writing: for key2response in sorted(keys2response): ACE writing: print(key2response, ' : ', response4samplerinfo2zpu[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 ZPU2SAMPLER4XI5TEST *** FAILED TO GET SOME SAMPLER INFO FOR ZPU', time4xi()) ACE writing: ACE writing: ACE writing: ACE writing: print('=' *33) ACE writing: print('(Step 3C1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET ALL SAMPLER INFO FOR ZPU ', time4xi()) ACE writing: print('=' *33) ACE writing: try: ACE writing: response4getinfo2sampler = get2samplerinfo4zpu() 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; create2sampler4zpu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568', ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # FUNCTION2CALLBACK : function trace2sampler4zpu 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 ZPU2SAMPLER4XI5TEST *** FAILED TO GET ALL SAMPLER INFO FOR ZPU ***', 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 ZPU2SAMPLER4XI5TEST - 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 ZPU2SAMPLER4XI5TEST - 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 ZPU2SAMPLER4XI5TEST - 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 ZPU2SAMPLER4XI5TEST *** 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 ZPU2SAMPLER4XI5TEST - TRYING TO INITIALIZE DEVICE4ZPU ', time4xi()) ACE writing: print('=' *33) ACE writing: try: ACE writing: device2zpu = init2zpu4xi() ACE writing: print('(Step 2B/33) OF ZPU2SAMPLER4XI5TEST - INITIALIZED DEVICE4ZPU TO: ', device2zpu) ACE writing: # {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ACE writing: ACE writing: except: ACE writing: print('(Step 2Z/33) OF ZPU2SAMPLER4XI5TEST *** FAILED TO INITIALIZE DEVICE4ZPU', 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 ZPU2SAMPLER4XI5TEST - TRYING TO CREATE CONTEXT4ZPU ', time4xi()) ACE writing: print('=' *33) ACE writing: try: ACE writing: context2zpu = create2context4zpu() ACE writing: print('(Step 3B/700) OF ZPU2SAMPLER4XI5TEST - CREATED CONTEXT4ZPU: ', context2zpu) ACE writing: # {'COUNT2REFERENCE': 0, 'DATA2CALLBACK' ... ACE writing: ACE writing: except: ACE writing: print('(Step 3Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE CONTEXT4ZPU', 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'] = context2zpu ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (6) DEFINE DEVICE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: task4set2sampler ['DEVICE'] = device2zpu 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 ZPU2SAMPLER4XI5TEST - TRYING TO SET QUEUE FOR SAMPLER4ZPU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['QUEUE'] = Queue4Xi() ACE writing: print('(Step 9B/700) OF ZPU2SAMPLER4XI5TEST - QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['QUEUE']) ACE writing: # queue4xi.Queue4Xi object at 0x0000000003B050F0 ACE writing: ACE writing: except: ACE writing: print('(Step 9Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET QUEUE FOR SAMPLER4ZPU ', 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 ZPU2SAMPLER4XI5TEST - TRYING TO SET PIPE FOR SAMPLER4ZPU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['PIPE'] = Pipe4Xi() ACE writing: print('(Step 10B/700) OF ZPU2SAMPLER4XI5TEST - PIPE OF SAMPLER4ZPU: ', 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 ZPU2SAMPLER4XI5TEST *** FAILED TO SET PIPE FOR SAMPLER4ZPU ', 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 ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ACE writing: print('(Step 11B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ACE writing: # ACE writing: task4set2sampler ['NORMALIZATION'] = 'CL_TRUE' ACE writing: print('(Step 11C/700) OF ZPU2SAMPLER4XI5TEST - NORMALIZATION OF SAMPLER4ZPU: ', task4set2sampler ['NORMALIZATION']) ACE writing: # ACE writing: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_REPEAT' ACE writing: print('(Step 11D/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ACE writing: # ACE writing: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_NEAREST' ACE writing: print('(Step 11E/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ACE writing: # ACE writing: ACE writing: except: ACE writing: print('(Step 11Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', 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 ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER4ZPU ', time4xi()) ACE writing: try: ACE writing: response4set2sampler = set2sampler4zpu(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; create2sampler4zpu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ... ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ... ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # FUNCTION2CALLBACK : function trace2sampler4zpu 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 ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER4ZPU *** ', 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 ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4release2sampler = release2sampler4zpu(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 ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ACE writing: ACE writing: task4getinfo2sampler = {} ACE writing: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ACE writing: ACE writing: print('(Step 12C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4getinfo2sampler = get2samplerinfo4zpu (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 ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU 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 ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ACE writing: try: ACE writing: response4retain2sampler = retain2sampler4zpu(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 ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU 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 ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK OF ZPU ', time4xi()) ACE writing: try: ACE writing: response4setcallback2sampler = set2samplercallback4zpu() ACE writing: print('(Step 14B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER CALLBACK OF ZPU TO: ', response4setcallback2sampler) ACE writing: # function trace2sampler4zpu at 0x00000000039676C8 ACE writing: except: ACE writing: print('(Step 14Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER CALLBACK OF ZPU ', 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 ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ACE writing: print('=' *33) ACE writing: trace2zpu = None ACE writing: try: ACE writing: trace2zpu = trace2sampler4zpu() ACE writing: print('(Step 15B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ACE writing: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {} ACE writing: ACE writing: except: ACE writing: print('(Step 15Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) 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 ZPU2SAMPLER4XI5TEST - CREATING SAMPLER4ZPU OBJECT ', time4xi()) ACE writing: print('=' *33) ACE writing: # ACE writing: try: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # CREATE WITH OBJECT ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: samplerobject2zpu = ZPU2Sampler4Xi() ACE writing: print('(Step 105B/700) OF ZPU2SAMPLER4XI5TEST - CREATED SAMPLER4ZPU OBJECT: ', samplerobject2zpu) ACE writing: # zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02320 ACE writing: ACE writing: except: ACE writing: print('(Step 105Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER4ZPU OBJECT') ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # PHASE II: CLASS TESTS - GET METHOD ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('(Step 106A1/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SAMPLER INFO ', time4xi()) ACE writing: try: ACE writing: response4get2samplerinfo = samplerobject2zpu.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; create2sampler4zpu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': {'MESSAGE': '{(Step 1Z1/33) failed; create2event4zpu-failed ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # FUNCTION2CALLBACK : function trace2sampler4zpu 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 ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU 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 ZPU2SAMPLER4XI5TEST *** 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 ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4getinfo2sampler = samplerobject2zpu.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 ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU 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 ZPU2SAMPLER4XI5TEST - 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'] = context2zpu ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (6) DEFINE DEVICE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: ACE writing: task4set2sampler ['DEVICE'] = device2zpu 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 ZPU2SAMPLER4XI5TEST - 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 ZPU2SAMPLER4XI5TEST - QUEUE : ', task4set2sampler ['QUEUE']) ACE writing: # queue4xi.Queue4Xi object at 0x0000000003B02B00 ACE writing: ACE writing: except: ACE writing: print('(Step 108Z1/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE QUEUE4XI ', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (9) PIPE ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: print('(Step 109A/700) OF ZPU2SAMPLER4XI5TEST - 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 ZPU2SAMPLER4XI5TEST - 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 ZPU2SAMPLER4XI5TEST *** 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 ZPU2SAMPLER4XI5TEST - TRYING TO SET COMMAND QUEUEFOR SAMPLER4ZPU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['COMMANDQUEUE'] = create2commandqueue4zpu() ACE writing: print('(Step 110B/700) OF ZPU2SAMPLER4XI5TEST - COMMAND QUEUE OF SAMPLER4ZPU: ', task4set2sampler ['COMMANDQUEUE']) ACE writing: # {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0 ACE writing: ACE writing: ACE writing: except: ACE writing: print('(Step 110Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET COMMAND QUEUE FOR SAMPLER4ZPU ', time4xi()) ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (11) SET ADDRESSINGMODE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: ACE writing: print('(Step 111A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET ADDRESSINGMODEFOR SAMPLER4ZPU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['ADDRESSINGMODE'] = 'CL_ADDRESS_CLAMP_TO_EDGE' ACE writing: print('(Step 111B/700) OF ZPU2SAMPLER4XI5TEST - ADDRESSINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['ADDRESSINGMODE']) ACE writing: # CL_ADDRESS_CLAMP_TO_EDGE ACE writing: ACE writing: ACE writing: except: ACE writing: print('(Step 111Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET ADDRESSINGMODE FOR SAMPLER4ZPU ', time4xi()) ACE writing: ACE writing: ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: # (12) SET FILTERINGMODE - EXTRA ACE writing: # --------------------------------------------------------------------------------------------- ACE writing: ACE writing: print('(Step 121A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO SET FILTERINGMODEFOR SAMPLER4ZPU ', time4xi()) ACE writing: try: ACE writing: task4set2sampler ['FILTERINGMODE'] = 'CL_FILTER_LINEAR' ACE writing: print('(Step 121B/700) OF ZPU2SAMPLER4XI5TEST - FILTERINGMODE OF SAMPLER4ZPU: ', task4set2sampler ['FILTERINGMODE']) ACE writing: # CL_FILTER_LINEAR ACE writing: ACE writing: ACE writing: except: ACE writing: print('(Step 121Z/700) OF ZPU2SAMPLER4XI5TEST *** FAILED TO SET FILTERINGMODE FOR SAMPLER4ZPU ', 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 ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER FOR ZPU: ', time4xi()) ACE writing: try: ACE writing: response4set2sampler = samplerobject2zpu.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; create2sampler4zpu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318 ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ACE writing: # FILTERINGMODE : CL_FILTER_LINEAR ACE writing: # FUNCTION2CALLBACK : function trace2sampler4zpu 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 ZPU2SAMPLER4XI5TEST *** FAILED TO SET SAMPLER FOR ZPU: ', 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 ZPU2SAMPLER4XI5TEST - RELEASING SAMPLER', time4xi()) ACE writing: print('=' *33) ACE writing: # ACE writing: task4release2sampler = {} ACE writing: task4release2sampler ['COUNT2REFERENCE'] = 1 ACE writing: try: ACE writing: response4release2sampler = samplerobject2zpu.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 ZPU2SAMPLER4XI5TEST *** 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 ZPU2SAMPLER4XI5TEST - RETAINING SAMPLER ', time4xi()) ACE writing: print('=' *33) ACE writing: task4retain2sampler = {} ACE writing: task4retain2sampler ['COUNT2REFERENCE'] = 1 ACE writing: try: ACE writing: response4retain2sampler = samplerobject2zpu.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 ZPU2SAMPLER4XI5TEST *** 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 ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER for ZPU ', time4xi()) ACE writing: # ACE writing: try: ACE writing: xi2zpu = ZPU2Sampler4Xi() ACE writing: response4create2sampler = xi2zpu.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; create2sampler4zpu-failed ACE writing: # DEVICE : {'RESOLUTION2TIMER4PROFILING': 318, 'ID2PLATFORM': '0000000001509568' ACE writing: # EVENT : {'CODE2ERROR': 0, 'DATA2CALLBACK': ACE writing: # FILTERINGMODE : CL_FILTER_NEAREST ACE writing: # FUNCTION2CALLBACK : function trace2sampler4zpu 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 ZPU2SAMPLER4XI5TEST *** FAILED TO CREATE SAMPLER for ZPU ', 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 ZPU2SAMPLER4XI5TEST - TRYING TO SET SAMPLER CALLBACK WITH METHOD OF OBJECT XI2ZPU: ', xi2zpu) ACE writing: # ACE writing: try: ACE writing: ACE writing: callback2zpu = xi2zpu.set2samplercallback() ACE writing: print('(Step 124B/700) OF ZPU2SAMPLER4XI5TEST - SET SAMPLER WITH CALLBACK TO: ', callback2zpu) ACE writing: # function trace2sampler4zpu at 0x00000000039676C8 ACE writing: ACE writing: except: ACE writing: print('(Step 124Z/700) OF ZPU2SAMPLER4XI5TEST *** 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 ZPU2SAMPLER4XI5TEST - TRYING TO TRACE ZPU: ', time4xi()) ACE writing: print('=' *33) ACE writing: # ACE writing: ACE writing: trace2zpu = None ACE writing: try: ACE writing: trace2zpu = xi2zpu.trace2sampler() ACE writing: ACE writing: print('=' *33) ACE writing: print('(Step 125B/25) OF ZPU2SAMPLER4XI5TEST - TRACE2ZPU: ', trace2zpu) ACE writing: # {'MESSAGE': '{(Step 2Z0/33) failed; trace2sampler4zpu-failed {} ACE writing: ACE writing: ACE writing: print('=' *33) ACE writing: except: ACE writing: print('(Step 125Z1/25) OF ZPU2SAMPLER4XI5TEST *** FAILED TO TRACE ZPU: ', trace2zpu) 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 ZPU2SAMPLER4XI5TEST - TRYING TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4release2sampler = xi2zpu.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 ZPU2SAMPLER4XI5TEST *** FAILED TO RELEASE SAMPLER OF ZPU DEVICE ', time4xi()) ACE writing: ACE writing: task4getinfo2sampler = {} ACE writing: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ACE writing: response4getinfo2sampler = {} ACE writing: print('(Step 133C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4getinfo2sampler = xi2zpu.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 ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU 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 ZPU2SAMPLER4XI5TEST - TRYING TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ACE writing: try: ACE writing: response4retain2sampler = xi2zpu.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 ZPU2SAMPLER4XI5TEST *** FAILED TO RETAIN SAMPLER OF ZPU DEVICE ', time4xi()) ACE writing: ACE writing: task4getinfo2sampler = {} ACE writing: task4getinfo2sampler ['COUNT2REFERENCE'] = 0 ACE writing: response4getinfo2sampler = {} ACE writing: print('(Step 134C/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO GET SELECTED SAMPLER INFO OF ZPU DEVICE ', time4xi()) ACE writing: # ACE writing: try: ACE writing: response4getinfo2sampler = xi2zpu.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 ZPU2SAMPLER4XI5TEST *** FAILED TO GET SELECTED SAMPLER INFO OF ZPU 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 ZPU2SAMPLER4XI5TEST - SENSING ', time4xi()) ACE writing: print('=' *33) ACE writing: ACE writing: try: ACE writing: print(xi2zpu.sense()) ACE writing: ACE writing: print('=' *33) ACE writing: print('(Step 170B/700) OF ZPU2SAMPLER4XI5TEST - SENSED ', time4xi()) ACE writing: # {'classvariable2zpu-of-ZPU2Sampler4Xi': 4, 'object': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} ACE writing: ACE writing: print('=' *33) ACE writing: except: ACE writing: print('(Step 170Z/700) OF ZPU2SAMPLER4XI5TEST *** 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 ZPU2SAMPLER4XI5TEST - REASONING ', time4xi()) ACE writing: print('=' *33) ACE writing: ACE writing: try: ACE writing: print(xi2zpu.reason()) ACE writing: ACE writing: print('=' *33) ACE writing: print('(Step 171B/700) OF ZPU2SAMPLER4XI5TEST - REASONED ', time4xi()) ACE writing: # {'object-reason-object4xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98, 'time-reason-of-ZPU2Sampler4Xi': '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 ZPU2SAMPLER4XI5TEST *** 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 ZPU2SAMPLER4XI5TEST - ACING ', time4xi()) ACE writing: print('=' *33) ACE writing: ACE writing: try: ACE writing: print(xi2zpu.ace()) ACE writing: ACE writing: print('=' *33) ACE writing: print('(Step 172B/700) OF ZPU2SAMPLER4XI5TEST - ACED ', time4xi()) ACE writing: # {'cores-of-ZPU2Sampler4Xi': 4, 'object8xi': zpu2sampler4xi.ZPU2Sampler4Xi object at 0x0000000003B02F98} ACE writing: ACE writing: print('=' *33) ACE writing: except: ACE writing: print('(Step 172Z/700) OF ZPU2SAMPLER4XI5TEST *** 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 ZPU2SAMPLER4XI5TEST - DONE! ', time4xi()) ACE writing: # ACE writing: print('=' *33) ACE writing: except: ACE writing: print('(Step 175/700) OF ZPU2SAMPLER4XI5TEST *** 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 zpu2sampler4xi5test ACE writing: #" ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: def main(): ACE writing: ACE writing: print('=' *33) ACE writing: print("(Step 0A/700) OF ZPU2SAMPLER4XI5TEST - SENSING IT WITH YOURZPUXI!", time4xi()) ACE writing: # ACE writing: print('=' *33) ACE writing: ACE writing: zpu2sampler4xi5test() ACE writing: ACE writing: print('=' *33) ACE writing: print("(Step 0B/700) OF ZPU2SAMPLER4XI5TEST - SENSED IT WITH YOURZPUXI!", 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: # zpu2sampler4xi5test.txt ACE writing: # sense-zpu2sampler4xi5test.xml ACE writing: # reason-zpu2sampler4xi5test.xml ACE writing: # ace-zpu2sampler4xi5test.xml ACE writing: #" ACE writing: # ACE writing: ACE writing: #acknowledge4xi acknowledgement = "33" tester = "Small Smart"/ ACE writing: ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # to-be-done ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #do4xi do = " ACE writing: # nothing ACE writing: #" ACE writing: #/ ACE writing: ACE writing: #note4xi note = " ACE writing: # parse4xi.py - to parse this module 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: #end4xi end = " ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: # end of zpu2sampler4xi5test.py ACE writing: # ------------------------------------------------------------------------------------------------- ACE writing: #" ACE writing: #/ ACE writing: ('e://scope4xi//041721//zap//lib//z//index', '.html') ACE writing: ('e://scope4xi//041721//zap//lib//z//z2scope4xi', '.txt') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\version4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\z2skeleton4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2buffer4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2commandqueue4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2context4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2device4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2event4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2image4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2kernel4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2program4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu2sampler4xi.cpython-33', '.pyc') ACE writing: ('e://scope4xi//041721//zap//lib//z//__pycache__\\zpu3image4xi.cpython-33', '.pyc') ACE writing: e://scope4xi//041721//zap//lib//z//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py ACE writing: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0) ACE writing: None ACE writing: (pipeconnection4xi.PipeConnection4Xi object at 0x02F59350, pipeconnection4xi.PipeConnection4Xi object at 0x02F591B0) ACE writing: None ACE writing: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '} ACE writing: {} ACE writing: {} ACE writing: {'ack2return': ' 2C-2E-2F-2G-', 'list2platforms': ['DragonXi'], 'available2platform': 1, 'max2entries': 1, 'nack2return': ' '} ACE writing: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//index.html ACE writing: e://scope4xi//041721//zap//lib//z//version4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2scope4xi.txt ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//z2skeleton4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zapimport2ball4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2buffer4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2commandqueue4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2context4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2device4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2event4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2kernel4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2program4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi.py ACE writing: e://scope4xi//041721//zap//lib//z//zpu3image4xi5test.py ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\version4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\z2skeleton4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2buffer4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2commandqueue4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2context4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2device4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2event4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2image4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2kernel4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2program4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu2sampler4xi.cpython-33.pyc ACE writing: e://scope4xi//041721//zap//lib//z//__pycache__\zpu3image4xi.cpython-33.pyc ACE writing: queue4xi.Queue4Xi object at 0x029327D0 ACE writing: None ACE writing: queue4xi.Queue4Xi object at 0x029327D0 ACE writing: None ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453} ACE writing: None ACE writing: {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': 337, 'e://scope4xi//041721//zap//lib//z//zpu2sampler4xi5test.py': 1453} ACE writing: {} ACE writing: {'FUNCTION2CALLBACK': function trace2program4zpu at 0x02EA5AE0, 'DATA2CALLBACK': {'CLASS': 'create2programwithsource4zpu', 'MESSAGE': '{(Step 1Z1/33) failed; create2programwithsource4zpu-failed ACE writing: None ACE writing: {'CODE': {'e://scope4xi//041721//zap//lib//z//zpu2dummy4xi5test.cpp': {1: '// -----------------------------------------------------------------------------------------------------------------\n', 2: '// zpu2dummy4xi5test.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//z//zpu2sampler4xi5test.py': {1: '#profile4xi profile = "11" /\n', 2: '# -------------------------------------------------------------------------------------------------\n', 3: '#program4xi program = "zpu2sampler4xi5test.py"\n', 4: '#abstract4xi abstract = "tests zpu2sampler4xi.py"/\n', 5: '#verify4xi verification = "11" target = "zpu2sampler4xi.py"/\n', 6: '#contextualize4xi context = "sampler4xi.py"/\n', 7: '#state4xi status = "ACK4review; ACK4tagging; ACK4moduletesting; ACK4systemtesting; [Rel 7.21]"/\n', 8: '# -------------------------------------------------------------------------------------------------\n', 9: '\n', 10: '# -------------------------------------------------------------------------------------------------\n', 11: '# Public API\n', 12: '# -------------------------------------------------------------------------------------------------\n', 13: '#interface4xi interface = " \n', 14: "__all__ = ['zpu2sampler4xi5test'] \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 zpu2commandqueue4xi import ZPU2CommandQueue4Xi\n', 64: 'from zpu2commandqueue4xi import create2commandqueue4zpu \n', 65: 'from zpu2commandqueue4xi import flush2commandqueue4zpu\n', 66: 'from zpu2commandqueue4xi import finish2commandqueue4zpu\n', 67: 'from zpu2commandqueue4xi import get2commandqueueinfo4zpu\n', 68: 'from zpu2commandqueue4xi import release2commandqueue4zpu\n', 69: 'from zpu2commandqueue4xi import retain2commandqueue4zpu\n', 70: 'from zpu2commandqueue4xi import set2commandqueue4zpu\n', 71: 'from zpu2commandqueue4xi import trace2commandqueue4zpu\n', 72: '\n', 73: '# -------------------------------------------------------------------------------------------------\n', 74: '# Context module \n', 75: '# -------------------------------------------------------------------------------------------------\n', 76: 'from zpu2context4xi import ZPU2Context4Xi \n', 77: 'from zpu2context4xi import create2context4zpu\n', 78: 'from zpu2context4xi import get2context4zpu\n', 79: 'from zpu2context4xi import release2context4zpu\n', 80: 'from zpu2context4xi import retain2context4zpu\n', 81: 'from zpu2context4xi import set2context4zpu\n', 82: '\n', 83: '\n', 84: '# -------------------------------------------------------------------------------------------------\n', 85: '# Device module \n', 86: '# -------------------------------------------------------------------------------------------------\n', 87: 'from zpu2device4xi import ZPU4Xi\n', 88: 'from zpu2device4xi import init2zpu4xi \n', 89: 'from zpu2device4xi import set2zpu4xi\n', 90: 'from zpu2device4xi import get2zpu4xi\n', 91: '\n', 92: '\n', 93: '# -------------------------------------------------------------------------------------------------\n', 94: '# Event module \n', 95: '# -------------------------------------------------------------------------------------------------\n', 96: 'from zpu2event4xi import ZPU2Event4Xi\n', 97: 'from zpu2event4xi import create2event4zpu\n', 98: 'from zpu2event4xi import get2eventinfo4zpu\n', 99: 'from zpu2event4xi import release2event4zpu\n', 100: 'from zpu2event4xi import retain2event4zpu\n', 101: 'from zpu2event4xi import set2eventcallback4zpu \n', 102: 'from zpu2event4xi import set2event4zpu\n', 103: 'from zpu2event4xi import trace2event4zpu\n', 104: 'from zpu2event4xi import wait2event4zpu\n', 105: '\n', 106: '# -------------------------------------------------------------------------------------------------\n', 107: '# Image module \n', 108: '# -------------------------------------------------------------------------------------------------\n', 109: 'from zpu2image4xi import ZPU2Image4Xi\n', 110: 'from zpu2image4xi import create2image4zpu\n', 111: 'from zpu2image4xi import get2imageinfo4zpu\n', 112: 'from zpu2image4xi import get2supportedimageformats4zpu\n', 113: 'from zpu2image4xi import manoeuvre2copyimage4zpu\n', 114: 'from zpu2image4xi import manoeuvre2copyimagetobuffer4zpu\n', 115: 'from zpu2image4xi import manoeuvre2copybuffertoimage4zpu\n', 116: 'from zpu2image4xi import manoeuvre2readimage4zpu\n', 117: 'from zpu2image4xi import manoeuvre2writeimage4zpu\n', 118: 'from zpu2image4xi import manoeuvre2mapimage4zpu\n', 119: 'from zpu2image4xi import copy2image4zpu\n', 120: 'from zpu2image4xi import copy2imagetobuffer4zpu\n', 121: 'from zpu2image4xi import copy2buffertoimage4zpu\n', 122: 'from zpu2image4xi import read2image4zpu\n', 123: 'from zpu2image4xi import map2image4zpu\n', 124: 'from zpu2image4xi import release2image4zpu\n', 125: 'from zpu2image4xi import retain2image4zpu\n', 126: 'from zpu2image4xi import set2imagecallback4zpu \n', 127: 'from zpu2image4xi import set2image4zpu\n', 128: 'from zpu2image4xi import trace2image4zpu\n', 129: 'from zpu2image4xi import wait2image4zpu\n', 130: 'from zpu2image4xi import write2image4zpu\n', 131: '\n', 132: '# -------------------------------------------------------------------------------------------------\n', 133: '# Sampler module \n', 134: '# -------------------------------------------------------------------------------------------------\n', 135: 'from zpu2sampler4xi import ZPU2Sampler4Xi\n', 136: 'from zpu2sampler4xi import create2sampler4zpu\n', 137: 'from zpu2sampler4xi import get2samplerinfo4zpu\n', 138: 'from zpu2sampler4xi import release2sampler4zpu\n', 139: 'from zpu2sampler4xi import retain2sampler4zpu\n', 140: 'from zpu2sampler4xi import set2samplercallback4zpu \n', 141: 'from zpu2sampler4xi import set2sampler4zpu\n', 142: 'from zpu2sampler4xi import trace2sampler4zpu\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: " 'ZPU2Sampler4Xi': 'NACK4XI',\n", 445: " 'create2sampler4zpu': 'NACK4XI',\n", 446: " 'get2samplerinfo4zpu': 'NACK4XI',\n", 447: " 'retain2sampler4zpu': 'NACK4XI',\n", 448: " 'release2sampler4zpu': 'NACK4XI',\n", 449: " 'trace2sampler4zpu': 'NACK4XI',\n", 450: " 'set2samplercallback4zpu': 'NACK4XI',\n", 451: " 'set2sampler4zpu': '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: '#/function4xi \n', 478: '\n', 479: '# -------------------------------------------------------------------------------------------------\n', 480: '#function4xi function = "print-trace4xi" usage = "\n', 481: '# print XML trace for sampler4zpu test\n', 482: '#" \n', 483: '# ------------------------------------------------------------------------------------------------- \n', 484: 'def print2trace4xi(t2xi):\n', 485: ' \n', 486: '\n', 487: ' # -------------------------------------------------------------------------------------------------\n', 488: ' # SENSE \n', 489: ' # ------------------------------------------------------------------------------------------------- \n', 490: ' \n', 491: ' context2sense = {\n', 492: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\sense-zpu2sampler4xi5test.xml',\n", 493: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 494: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 495: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Sensing of OpenCl4Xi"\\n\',\n', 496: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Classes, methods and messages with context./rdfs:comment\\n\',\n', 497: ' \'class0_id4xi\': \' owl:Class rdf:ID="Dragon4Xi#000000"\\n\',\n', 498: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Sensing Sampler of ZPU./rdfs:comment\\n\',\n', 499: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="sensed#000000"\\n\',\n', 500: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"Sampler of ZPU sensed./rdfs:comment\\n\',\n', 501: " 'debug4xi': True}\n", 502: ' \n', 503: ' xml_trace_sense4xi(t2xi, context2sense)\n', 504: '\n', 505: ' # -------------------------------------------------------------------------------------------------\n', 506: ' # REASON \n', 507: ' # ------------------------------------------------------------------------------------------------- \n', 508: ' \n', 509: ' context2reason = {\n', 510: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\reason-zpu2sampler4xi5test.xml',\n", 511: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 512: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 513: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Reasoning of OpenCl4Xi"\\n\',\n', 514: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Operations/rdfs:comment\\n\',\n', 515: ' \'operation_comment4xi\': \' rdfs:comment xml:lang="en"Operations for Sampler of ZPU./rdfs:comment\\n\',\n', 516: ' \'class0_id4xi\': \' owl:Class rdf:ID="reasoned#000000"\\n\',\n', 517: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Operations with context./rdfs:comment\\n\',\n', 518: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="reason#000000"\\n\',\n', 519: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"reason/rdfs:comment\\n\',\n', 520: " 'debug4xi': True}\n", 521: ' \n', 522: ' xml_trace_reason4xi(t2xi, context2reason)\n', 523: '\n', 524: ' # -------------------------------------------------------------------------------------------------\n', 525: ' # ACE \n', 526: ' # ------------------------------------------------------------------------------------------------- \n', 527: ' \n', 528: ' context2ace = {\n', 529: " 'file_path4xi': 'E:\\\\scope4xi\\\\041721\\\\zap\\\\web\\\\xml\\\\ace-zpu2sampler4xi5test.xml',\n", 530: ' \'name_space4xi\': \' xmlns="http://www.yourzpuxi.org/sw4xi/python33/owl/multiprocessing4zpu.owl#"\\n\',\n', 531: ' \'xml_base4xi\': \' xml:base="http://www.yourzpuxi.org/web/lib/owl/scope4xi.owl"\\n\',\n', 532: ' \'ontology_about4xi\': \' owl:Ontology rdf:about="Acing of OpenCl4Xi"\\n\',\n', 533: ' \'ontology_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values for Sampler of ZPU./rdfs:comment\\n\',\n', 534: ' \'class0_id4xi\': \' owl:Class rdf:ID="ACE4Xi#0000000"\\n\',\n', 535: ' \'class0_comment4xi\': \' rdfs:comment xml:lang="en"Objects and values of Sampler of ZPU./rdfs:comment\\n\',\n', 536: ' \'object_property_rdf4xi\': \' owl:ObjectProperty rdf:ID="ace#0000000"\\n\',\n', 537: ' \'object_property_comment4xi\': \' rdfs:comment xml:lang="en"000000/rdfs:comment\\n\',\n', 538: " 'debug4xi': True} \n", 539: ' \n', 540: ' xml_trace_ace4xi(t2xi, context2ace)\n', 541: '\n', 542: '\n', 543: ' # -------------------------------------------------------------------------------------------------\n', 544: ' # end of print2trace4xi \n', 545: ' # ------------------------------------------------------------------------------------------------- \n', 546: '#/function4xi\n', 547: ' \n', 548: '# -------------------------------------------------------------------------------------------------\n', 549: '#function4xi function = "zpu2sampler4xi5test" usage = "\n', 550: '# tests sampler4zpu\n', 551: '#" \n', 552: '# ------------------------------------------------------------------------------------------------- \n', 553: 'def zpu2sampler4xi5test():\n', 554: ' global t2xi\n', 555: ' global trace_object_count \n', 556: ' \n', 557: ' # --------------------------------------------------------------------------------------------- \n', 558: ' # INITIALIZE TRACE\n', 559: ' # --------------------------------------------------------------------------------------------- \n', 560: ' t2xi = Print4Xi()\n', 561: ' set2trace4xi() # trace all classes and functions in the system\n', 562: ' deny2trace4xi() # deny trace for all classes and functions in the system\n', 563: ' tailor2trace4xi() # tailor trace for this test \n', 564: ' \n', 565: ' try:\n', 566: ' # ---------------------------------------------------------------------------------------------\n', 567: ' # START TESTING \n', 568: ' # --------------------------------------------------------------------------------------------- \n', 569: " print('=' *33) \n", 570: " print('(Step 1A/700) OF ZPU2SAMPLER4XI5TEST - STARTED ', time4xi()) \n", 571: " print('=' *33) \n", 572: ' # \n', 573: ' \n', 574: ' # ---------------------------------------------------------------------------------------------\n', 575: ' # PHASE I: FUNCTION TESTS - CREATE SAMPLER WITH FUNCTION \n', 576: ' # --------------------------------------------------------------------------------------------- \n', 577: " print('(Step 2A/700) OF ZPU2SAMPLER4XI5TEST - TRYING TO CREATE SAMPLER4ZPU ', time4xi()) \n", 578: ' try:\n', 579: ' response4create2sampler = create2sampler4zpu() \n', 580: ' keys2response = response4create2sampler.keys()\n', 581: ' for key2response in sorted(keys2response):\n', 582: " print(key2response, ' : ', response4create2sampler[key2response])\n", 583: ' # ACK2RETURN : 1D-1E-2C-2B-3B-4B-5B-6B-7B-8B-9B-10B-11B-12B-14B-15B-21A1-22B1-22C1-23B-24B-25B-26B-27B-28B-29B-30B-31B-32B-33B-34B-\n', 584: ' # ADDRESSINGMODE : CL_ADDRESS_MIRRORED_REPEAT\n', 585: " # BUFFER : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, ...\n", 586: ' # CODE2ERROR : 0\n', 587: " # COMMANDQUEUE : {'CODE2ERROR': 0, 'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 588: " # CONTEXT : {'COUNT2REFERENCE': 0, 'DATA2CALLBACK': ...\n", 589: ' # COUNT2REFERENCE : 1\n', 590: " # DATA2CALLBACK : {'MESSAGE': '{(Step 1Z1/33) failed; create2sampler4zpu-failed ACE writing: {} --------------------------------- xml_trace_ace4xi: closed ACE XML file --------------------------------- (Step 0B/700) OF ZPU2PROGRAM4XI5TEST - SENSED IT WITH YOURZPUXI! 08:41:50 02/18/15 FLE Standard Time